mirror of https://github.com/commaai/tinygrad.git
inline clang renderer (#3168)
This commit is contained in:
parent
efbe4788d1
commit
a04e4d0442
|
@ -22,6 +22,5 @@ class ClangProgram:
|
|||
|
||||
def __call__(self, *bufs, vals=(), wait=False): return cpu_time_execution(lambda: self.fxn(*bufs, *vals), enable=wait)
|
||||
|
||||
renderer = functools.partial(uops_to_cstyle, CStyleLanguage(buffer_suffix=" restrict"))
|
||||
ClangDevice = Compiled(MallocAllocator, LinearizerOptions("CLANG", supports_float4=False, has_local=False), renderer,
|
||||
compile_clang, "compile_clang", ClangProgram)
|
||||
ClangDevice = Compiled(MallocAllocator, LinearizerOptions("CLANG", supports_float4=False, has_local=False),
|
||||
functools.partial(uops_to_cstyle, CStyleLanguage(buffer_suffix=" restrict")), compile_clang, "compile_clang", ClangProgram)
|
||||
|
|
Loading…
Reference in New Issue