mirror of https://github.com/Jittor/Jittor
add nvcc search path
This commit is contained in:
parent
fd7d68e6aa
commit
a07eb6bc12
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue