Skip to content

Commit

Permalink
dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Jan 16, 2025
1 parent d3ab4db commit d0201e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/monobase/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,10 @@ def tar_and_delete(path: str, file: str) -> None:
'--mode=go+u,go-w',
]
tar_env = {
'GZIPFLAGS': '--no-name --best',
'LC_ALL': 'C',
'TZ': 'UTC',
}
cmd = ['tar', '-C', path] + tar_flags + ['-czf', file] + os.listdir(path)
cmd = ['tar', '-C', path] + tar_flags + ['--zstd', '-cf', file] + sorted(os.listdir(path))
subprocess.run(cmd, check=True, env=tar_env)
shutil.rmtree(path, ignore_errors=True)

Expand Down Expand Up @@ -255,12 +254,13 @@ def install_cudnn(args: argparse.Namespace, version: str, cuda_major: str) -> st

def build_tarballs(args: argparse.Namespace) -> None:
os.makedirs(os.path.join(args.cache, 'cuda'), exist_ok=True)
for k in CUDAS.keys():
# for k in CUDAS.keys():
for k in list(CUDAS.keys())[:1]:
build_cuda_tarball(args, k)

os.makedirs(os.path.join(args.cache, 'cudnn'), exist_ok=True)
for k, v in CUDNNS.items():
build_cudnn_tarball(args, str(v.cudnn_version), str(v.cuda_major))
# os.makedirs(os.path.join(args.cache, 'cudnn'), exist_ok=True)
# for k, v in CUDNNS.items():
# build_cudnn_tarball(args, str(v.cudnn_version), str(v.cuda_major))


if __name__ == '__main__':
Expand Down

0 comments on commit d0201e1

Please sign in to comment.