mirror of https://github.com/Jittor/Jittor
fix: default to use CUDA when both CUDA and ROCm are installed
This commit is contained in:
parent
042c3610a3
commit
db81cc938f
|
@ -9,7 +9,7 @@
|
|||
# file 'LICENSE.txt', which is part of this source code package.
|
||||
# ***************************************************************
|
||||
|
||||
__version__ = '1.3.5.19'
|
||||
__version__ = '1.3.5.20'
|
||||
from jittor_utils import lock
|
||||
with lock.lock_scope():
|
||||
ori_int = int
|
||||
|
|
|
@ -1234,7 +1234,8 @@ jit_utils.add_backend(acl_compiler)
|
|||
from .extern.rocm import rocm_compiler
|
||||
jit_utils.add_backend(rocm_compiler)
|
||||
|
||||
for mod in jit_utils.backends:
|
||||
if not has_cuda:
|
||||
for mod in jit_utils.backends:
|
||||
mod.check()
|
||||
# if mod.check():
|
||||
# break
|
||||
|
|
Loading…
Reference in New Issue