Skip to content

Commit

Permalink
Merge pull request #8051 from kmaehashi/fix-unnecessary-warning
Browse files Browse the repository at this point in the history
Skip `CUDA_PATH` warning in Conda installation
  • Loading branch information
emcastillo committed Jan 4, 2024
2 parents 2d02eaa + 9e3b6bc commit 60242bb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cupy/_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,11 @@ def _setup_win32_dll_directory():
cuda_bin_path = os.path.join(cuda_path, 'bin')
else:
cuda_bin_path = None
warnings.warn(
'CUDA path could not be detected.'
' Set CUDA_PATH environment variable if CuPy fails to load.')
if not is_conda:
warnings.warn(
'CUDA path could not be detected.'
' Set CUDA_PATH environment variable if CuPy '
'fails to load.')
_log('CUDA_PATH: {}'.format(cuda_path))

# Path to shared libraries in wheel
Expand Down

0 comments on commit 60242bb

Please sign in to comment.