File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ def _import_get_cuda_path_or_home():
5353 if os .path .isdir (os .path .join (sp_cuda , "pathfinder" )):
5454 cuda .__path__ = list (cuda .__path__ ) + [sp_cuda ]
5555 break
56+ else :
57+ raise ModuleNotFoundError (
58+ "cuda-pathfinder is not installed in the build environment. "
59+ "Ensure 'cuda-pathfinder>=1.5' is in build-system.requires."
60+ )
5661 import cuda .pathfinder
5762
5863 return cuda .pathfinder .get_cuda_path_or_home
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ def _import_get_cuda_path_or_home():
4848 if os .path .isdir (os .path .join (sp_cuda , "pathfinder" )):
4949 cuda .__path__ = list (cuda .__path__ ) + [sp_cuda ]
5050 break
51+ else :
52+ raise ModuleNotFoundError (
53+ "cuda-pathfinder is not installed in the build environment. "
54+ "Ensure 'cuda-pathfinder>=1.5' is in build-system.requires."
55+ )
5156 import cuda .pathfinder
5257
5358 return cuda .pathfinder .get_cuda_path_or_home
You can’t perform that action at this time.
0 commit comments