Skip to content

Commit

Permalink
[extension] hotfix compile check (hpcaitech#6099)
Browse files Browse the repository at this point in the history
  • Loading branch information
ver217 authored Oct 24, 2024
1 parent dee63cc commit 80a8ca9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extensions/cpp_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def build_jit(self) -> None:

# check if the kernel has been built
compiled_before = False
kernel_file_path = build_directory.joinpath(f"{self.name}.o")
kernel_file_path = build_directory.joinpath(f"{self.name}.so")
if kernel_file_path.exists():
compiled_before = True

Expand Down
2 changes: 1 addition & 1 deletion extensions/cuda_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def build_jit(self) -> None:

# check if the kernel has been built
compiled_before = False
kernel_file_path = build_directory.joinpath(f"{self.name}.o")
kernel_file_path = build_directory.joinpath(f"{self.name}.so")
if kernel_file_path.exists():
compiled_before = True

Expand Down

0 comments on commit 80a8ca9

Please sign in to comment.