mirror of https://github.com/Jittor/Jittor
Update compiler.py
fix-bug: explicitly set log_v when querying cuda to avoid wrong output of jittor_utils.
This commit is contained in:
parent
4383886feb
commit
0c8b2e3bb9
|
@ -987,7 +987,7 @@ if nvcc_path:
|
|||
nvcc_version = list(map(int,v.split('.')))
|
||||
cu += v
|
||||
try:
|
||||
r, s = sp.getstatusoutput(f"{sys.executable} -m jittor_utils.query_cuda_cc")
|
||||
r, s = sp.getstatusoutput(f"log_v=0 {sys.executable} -m jittor_utils.query_cuda_cc")
|
||||
if r==0:
|
||||
s = sorted(list(set(s.strip().split())))
|
||||
cu += "_sm_" + "_".join(s)
|
||||
|
|
Loading…
Reference in New Issue