Skip to content

Commit

Permalink
add pip show apex back
Browse files Browse the repository at this point in the history
  • Loading branch information
jgongd committed Dec 3, 2024
1 parent 73fee3d commit 697bdfb
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .circleci/real_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ commands:
if [ -n "<<parameters.extra-requirements-file>>" ]; then
for i in <<parameters.extra-requirements-file>>; do
tools/scripts/retry.sh pip install -r $i
done
fi
- when:
Expand All @@ -520,16 +519,18 @@ commands:
name: Install Nvidia Apex
description: "Apex installation needs Cuda 12.1 because Pytorch binaries were compiled by Cuda 12.1."
command: |
# Ninja speeds up compilation.
if ! pip show ninja; then
pip install ninja
if ! pip show apex; then
# Ninja speeds up Apex compilation.
if ! pip show ninja; then
pip install ninja
fi
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
git -C ~/apex checkout tags/24.04.01
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
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
git -C ~/apex checkout tags/24.04.01
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
- save_cache:
key: det-python-deps-<<pipeline.parameters.cache-buster>>-{{ checksum "/tmp/cachefile" }}
Expand Down

0 comments on commit 697bdfb

Please sign in to comment.