fix: polish use_[device]

This commit is contained in:
lzhengning 2022-10-18 00:28:36 +08:00
parent db81cc938f
commit a4eb197938
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -1231,8 +1231,10 @@ if has_cuda:
# from .acl_compiler import check_acl
from .extern.acl import acl_compiler
jit_utils.add_backend(acl_compiler)
has_acl = False
from .extern.rocm import rocm_compiler
jit_utils.add_backend(rocm_compiler)
has_rocm = False
if not has_cuda:
for mod in jit_utils.backends: