adapting test/external/external_osx_profiling.py to the new code base (#2002)

* adapting external osx profiling

* fixing dtype

* fixing buffer size
This commit is contained in:
Luca Sciarpa
2023-10-08 14:55:00 +02:00
committed by GitHub
parent c4e8ea73bd
commit e93e240a6c
2 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ from tinygrad.runtime.lib import RawBufferCopyInOut, LRUAllocator, RawBufferTran
from tinygrad.codegen.kernel import LinearizerOptions
from tinygrad.renderer.cstyle import uops_to_cstyle, CStyleLanguage
OSX_TIMING_RATIO = (125/3) if OSX else 1.0 # see test/external_osx_profiling.py to determine this ratio. it's in like GPU clocks or something
OSX_TIMING_RATIO = (125/3) if OSX else 1.0 # see test/external/external_osx_profiling.py to determine this ratio. it's in like GPU clocks or something
# TODO: if you fork and exit the child process after creating anything with cl on AMD, it hangs on e.wait()
ROCM_LLVM_PATH = pathlib.Path("/opt/rocm/llvm/bin")