mirror of https://github.com/Jittor/Jittor
fix windows cuda.
This commit is contained in:
parent
6b7d1a27d4
commit
35763e6c2c
|
@ -1246,7 +1246,11 @@ jit_utils.add_backend(corex_compiler)
|
|||
for mod in jit_utils.backends:
|
||||
if mod.check():
|
||||
break
|
||||
is_cuda = os.path.basename(nvcc_path) == "nvcc"
|
||||
|
||||
if not os.name == 'nt':
|
||||
is_cuda = os.path.basename(nvcc_path) == "nvcc"
|
||||
else:
|
||||
is_cuda = os.path.basename(nvcc_path) == "nvcc.exe"
|
||||
|
||||
# build core
|
||||
gen_jit_flags()
|
||||
|
|
Loading…
Reference in New Issue