Skip to content

Commit

Permalink
Use PGET for CUDA & CuDNN
Browse files Browse the repository at this point in the history
  • Loading branch information
nevillelyh committed Oct 1, 2024
1 parent 86e92cb commit b00e09d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def install_cuda(args: argparse.Namespace, version: str) -> str:
logger.info(f'Downloading CUDA {version}...')
cuda = cudas[version]
file = os.path.join(args.cache, cuda.filename)
cmd = ['curl', '-fsSL', cuda.url, '-o', file]
cmd = ['pget', '--force', cuda.url, file]
subprocess.run(cmd, check=True)

logger.info(f'Installing CUDA {version}...')
Expand Down Expand Up @@ -97,7 +97,7 @@ def install_cudnn(args: argparse.Namespace, version: str, cuda_major: str) -> st
logger.info(f'Downloading CuDNN {key}...')
cudnn = cudnns[key]
file = os.path.join(args.cache, cudnn.filename)
cmd = ['curl', '-fsSL', cudnn.url, '-o', file]
cmd = ['pget', '--force', cudnn.url, file]
subprocess.run(cmd, check=True)

logger.info(f'Installing CuDNN {key}...')
Expand Down

0 comments on commit b00e09d

Please sign in to comment.