Skip to content

Commit 936ae92

Browse files
authored
[FIX] Fix kernel file suffix for cutedsl when only target is set (#2128)
1 parent b4c913b commit 936ae92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tilelang/jit/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def compile(self, *args: _P.args, **kwargs: _P.kwargs) -> _Ret:
410410
func_name = getattr(self.func, "__name__", "jit_kernel")
411411

412412
# cutedsl emits python executor not `c`
413-
is_cutedsl = self.execution_backend == "cutedsl"
413+
is_cutedsl = (self.execution_backend or self.target) == "cutedsl"
414414
kernel_suffix = "py" if is_cutedsl else "c"
415415
kernel_file = f"tilelang_jit_kernel_{func_name}.{kernel_suffix}"
416416

0 commit comments

Comments
 (0)