Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions op_builder/gds.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ def is_compatible(self, verbose=False):
return False

CUDA_HOME = torch.utils.cpp_extension.CUDA_HOME
if CUDA_HOME is None:
if verbose:
self.warning("Please install torch CUDA if trying to pre-compile GDS with CUDA")
return False

CUDA_LIB64 = os.path.join(CUDA_HOME, "lib64")
gds_compatible = self.has_function(funcname="cuFileDriverOpen",
libraries=("cufile", ),
Expand Down