[Perf] JIT monitor: hook TileLang JITImpl.compile instead of __call__ (#58685)
Signed-off-by: NickLucche <nicolo.lucchesi@mistral.ai>
This commit is contained in:
@@ -65,10 +65,13 @@ def _fake_tilelang_import_modules():
|
||||
key, _ = self.func.parse_args(*args, **kwargs)
|
||||
kernel = self._kernel_cache.get(key)
|
||||
if kernel is None:
|
||||
kernel = "compiled"
|
||||
kernel = self.compile(*args, **kwargs)
|
||||
self._kernel_cache[key] = kernel
|
||||
return kernel
|
||||
|
||||
def compile(self, *args, **kwargs):
|
||||
return "compiled"
|
||||
|
||||
fake_kernel = cast(Any, ModuleType("tilelang.jit.kernel"))
|
||||
fake_kernel.JITKernel = FakeJITKernel
|
||||
|
||||
|
||||
Reference in New Issue
Block a user