mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-04-28 03:43:01 +00:00
[extension] hotfix compile check (#6099)
This commit is contained in:
parent
dee63cc5ef
commit
80a8ca916a
@ -79,7 +79,7 @@ class _CppExtension(_Extension):
|
|||||||
|
|
||||||
# check if the kernel has been built
|
# check if the kernel has been built
|
||||||
compiled_before = False
|
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():
|
if kernel_file_path.exists():
|
||||||
compiled_before = True
|
compiled_before = True
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ class _CudaExtension(_CppExtension):
|
|||||||
|
|
||||||
# check if the kernel has been built
|
# check if the kernel has been built
|
||||||
compiled_before = False
|
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():
|
if kernel_file_path.exists():
|
||||||
compiled_before = True
|
compiled_before = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user