move stuff in the linearizer (#1726)

* move stuff in linearizer

* move stuff in linearizer

* minor

* fix opts import
This commit is contained in:
George Hotz
2023-08-31 14:42:09 -07:00
committed by GitHub
parent c18a497dde
commit 453e437598
9 changed files with 34 additions and 39 deletions

View File

@@ -6,7 +6,7 @@ from typing import Optional, List
from tinygrad.helpers import DEBUG, getenv, prod, ImageDType, OSX, fromimport
from tinygrad.ops import Compiled
from tinygrad.runtime.lib import RawBufferCopyInOut, LRUAllocator, RawBufferTransfer
from tinygrad.codegen.linearizer import LinearizerOptions
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