We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 094e841 commit 8f3c5f7Copy full SHA for 8f3c5f7
numba_cuda/numba/cuda/cuda_paths.py
@@ -314,10 +314,11 @@ def get_conda_include_dir():
314
315
def get_system_include_dir():
316
"""Return the system CUDA include directory, if it exists"""
317
- system_cuda_include = '/usr/local/cuda/include'
318
- if os.path.exists(system_cuda_include):
319
- return system_cuda_include
320
- return None
+ if sys.platform.startswith('linux'):
+ system_cuda_include = '/usr/local/cuda/include'
+ if os.path.exists(system_cuda_include):
+ return system_cuda_include
321
+ return
322
323
324
def _get_include_dir():
0 commit comments