Skip to content

Commit

Permalink
add linux specific logic
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Nov 26, 2024
1 parent 094e841 commit 8f3c5f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions numba_cuda/numba/cuda/cuda_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,11 @@ def get_conda_include_dir():

def get_system_include_dir():
"""Return the system CUDA include directory, if it exists"""
system_cuda_include = '/usr/local/cuda/include'
if os.path.exists(system_cuda_include):
return system_cuda_include
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
return


def _get_include_dir():
Expand Down

0 comments on commit 8f3c5f7

Please sign in to comment.