We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cc9161 commit 01aa8d1Copy full SHA for 01aa8d1
1 file changed
cuda_pathfinder/cuda/pathfinder/_headers/find_nvidia_headers.py
@@ -108,9 +108,12 @@ def _find_ctk_header_directory(libname: str) -> LocatedHeaderDir | None:
108
return LocatedHeaderDir(abs_path=result, found_via="CUDA_HOME")
109
110
# Fallback: typical system install path (matches CuPy's get_cuda_path())
111
- if not IS_WINDOWS and os.path.exists('/usr/local/cuda'):
112
- if result := _locate_based_on_ctk_layout(libname, h_basename, '/usr/local/cuda'):
113
- return LocatedHeaderDir(abs_path=result, found_via="system_default")
+ if (
+ not IS_WINDOWS
+ and os.path.exists("/usr/local/cuda")
114
+ and (result := _locate_based_on_ctk_layout(libname, h_basename, "/usr/local/cuda"))
115
+ ):
116
+ return LocatedHeaderDir(abs_path=result, found_via="system_default")
117
118
return None
119
0 commit comments