add nvcc search path

This commit is contained in:
Dun Liang 2021-06-05 11:46:07 +08:00
parent fd7d68e6aa
commit a07eb6bc12
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,7 @@
# file 'LICENSE.txt', which is part of this source code package.
# ***************************************************************
__version__ = '1.2.3.18'
__version__ = '1.2.3.19'
from jittor_utils import lock
with lock.lock_scope():
ori_int = int

View File

@ -877,7 +877,10 @@ if install_cuda.has_installation():
nvcc_path = try_find_exe(nvcc_path)
# check system installed cuda
if not nvcc_path:
nvcc_path = env_or_try_find('nvcc_path', 'nvcc') or try_find_exe('/usr/local/cuda/bin/nvcc') or try_find_exe('/usr/bin/nvcc')
nvcc_path = env_or_try_find('nvcc_path', 'nvcc') or \
try_find_exe('/usr/local/cuda/bin/nvcc') or \
try_find_exe('/usr/bin/nvcc') or \
try_find_exe('/opt/cuda/bin/nvcc')
# if system has no cuda, install jtcuda
if not nvcc_path:
nvcc_path = install_cuda.install_cuda()