Skip to content

Commit 3b156b7

Browse files
committed
find_nvidia_headers.py cccl IS_WINDOWS: fall-through after checking for conda anomaly, to restore proper functioning for standard CTK installations
1 parent 0734ac7 commit 3b156b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda_pathfinder/cuda/pathfinder/_headers/find_nvidia_headers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ def _find_based_on_ctk_layout(libname: str, h_basename: str, anchor_point: str)
3939
idir = os.path.join(*parts)
4040
if libname == "cccl":
4141
if IS_WINDOWS:
42+
# conda has this anomaly
4243
cdir_ctk12 = os.path.join(idir, "targets", "x64")
4344
cdir_ctk13 = os.path.join(cdir_ctk12, "cccl")
4445
if _joined_isfile(cdir_ctk13, h_basename):
4546
return cdir_ctk13
4647
if _joined_isfile(cdir_ctk12, h_basename):
4748
return cdir_ctk12
48-
return None
4949
cdir = os.path.join(idir, "cccl") # CTK 13
5050
if _joined_isfile(cdir, h_basename):
5151
return cdir

0 commit comments

Comments
 (0)