Skip to content

Commit

Permalink
Use Apex in cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jgongd committed Nov 21, 2024
1 parent 88282eb commit 92b6ddc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .circleci/real_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,13 @@ commands:
name: Install Nvidia Apex
description: "Apex installation needs Cuda 12.1 because Pytorch binaries were compiled by Cuda 12.1."
command: |
wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
sudo sh cuda_12.1.0_530.30.02_linux.run --toolkit --silent
nvcc --version
git clone https://github.com/NVIDIA/apex ~/apex
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ~/apex
if ! pip show apex; then
wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
sudo sh cuda_12.1.0_530.30.02_linux.run --toolkit --silent
nvcc --version
git clone https://github.com/NVIDIA/apex ~/apex
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ~/apex
fi
- save_cache:
key: det-python-deps-<<pipeline.parameters.cache-buster>>-{{ checksum "/tmp/cachefile" }}
Expand Down

0 comments on commit 92b6ddc

Please sign in to comment.