(cls, executable: Executable, path: str)
| 457 | |
| 458 | @classmethod |
| 459 | def _safe_write_executable(cls, executable: Executable, path: str): |
| 460 | temp_path = os.path.join(env.TILELANG_TMP_DIR, f"{os.getpid()}_{uuid.uuid4()}.so") |
| 461 | executable.export_library(temp_path, **cls._get_compile_args()) |
| 462 | os.replace(temp_path, path) |
| 463 | |
| 464 | def _save_kernel_to_disk(self, key: str, kernel: JITKernel, func: Callable = None, verbose: bool = False): |
| 465 | """ |
no test coverage detected