mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-07 22:23:55 -05:00
pickle
This commit is contained in:
@@ -246,9 +246,11 @@ class CUDAPTXRenderer(PTXRenderer):
|
|||||||
super().__init__(arch, "CUDA")
|
super().__init__(arch, "CUDA")
|
||||||
from tinygrad.runtime.support.compiler_cuda import PTXCompiler
|
from tinygrad.runtime.support.compiler_cuda import PTXCompiler
|
||||||
self.compiler = PTXCompiler(arch)
|
self.compiler = PTXCompiler(arch)
|
||||||
|
def __reduce__(self): return self.__class__, (self.arch,)
|
||||||
|
|
||||||
class NVPTXRenderer(PTXRenderer):
|
class NVPTXRenderer(PTXRenderer):
|
||||||
def __init__(self, arch:str):
|
def __init__(self, arch:str):
|
||||||
super().__init__(arch, "NV")
|
super().__init__(arch, "NV")
|
||||||
from tinygrad.runtime.support.compiler_cuda import NVPTXCompiler
|
from tinygrad.runtime.support.compiler_cuda import NVPTXCompiler
|
||||||
self.compiler = NVPTXCompiler(arch)
|
self.compiler = NVPTXCompiler(arch)
|
||||||
|
def __reduce__(self): return self.__class__, (self.arch,)
|
||||||
|
|||||||
Reference in New Issue
Block a user