mirror of https://github.com/Jittor/Jittor
update cutt
This commit is contained in:
parent
8ed660bf23
commit
10ea7eab35
|
@ -183,7 +183,7 @@ def install_cutt(root_folder):
|
|||
filename = "cutt-master.zip"
|
||||
fullname = os.path.join(root_folder, filename)
|
||||
dirname = os.path.join(root_folder, filename.replace(".zip",""))
|
||||
true_md5 = "a6f4f7f75310a69b131e21f1ebec768a"
|
||||
true_md5 = "af5bc35eea1832a42c0e0011659b7209"
|
||||
|
||||
if os.path.exists(fullname):
|
||||
md5 = run_cmd('md5sum '+fullname).split()[0]
|
||||
|
@ -205,7 +205,11 @@ def install_cutt(root_folder):
|
|||
zf.close()
|
||||
|
||||
LOG.i("installing cutt...")
|
||||
run_cmd(f"make", cwd=dirname)
|
||||
arch_flag = ""
|
||||
if len(flags.cuda_archs):
|
||||
arch_flag = f" -arch=compute_{min(flags.cuda_archs)} "
|
||||
arch_flag += ''.join(map(lambda x:f' -code=sm_{x} ', flags.cuda_archs))
|
||||
run_cmd(f"make NVCC_GENCODE='{arch_flag}'", cwd=dirname)
|
||||
return dirname
|
||||
|
||||
def setup_cutt():
|
||||
|
|
Loading…
Reference in New Issue