Skip to content

Commit

Permalink
the compiler is a driver (tinygrad#3427)
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot authored Feb 16, 2024
1 parent 2d702ca commit fe97a85
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
long_description=long_description,
long_description_content_type='text/markdown',
packages = ['tinygrad', 'tinygrad.runtime.autogen', 'tinygrad.codegen', 'tinygrad.nn', 'tinygrad.renderer',
'tinygrad.runtime', 'tinygrad.runtime.compiler', 'tinygrad.runtime.graph', 'tinygrad.shape', 'tinygrad.features'],
'tinygrad.runtime', 'tinygrad.runtime.driver', 'tinygrad.runtime.graph', 'tinygrad.shape', 'tinygrad.features'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License"
Expand Down
File renamed without changes.
3 changes: 1 addition & 2 deletions tinygrad/runtime/ops_hip.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from tinygrad.device import Compiled, LRUAllocator, BufferOptions, JITRunner, Device, Buffer, MallocAllocator, update_stats, Compiler
from tinygrad.renderer.cstyle import HIPRenderer
from tinygrad.codegen.kernel import LinearizerOptions
from tinygrad.runtime.compiler.hip_comgr import compile_hip

from tinygrad.runtime.driver.hip_comgr import compile_hip

class HIPCompiler(Compiler):
linearizer_opts = LinearizerOptions("HIP", has_tensor_cores=True)
Expand Down

0 comments on commit fe97a85

Please sign in to comment.