Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
fairscale
Commits
d168481c
Unverified
Commit
d168481c
authored
Mar 05, 2021
by
Benjamin Lefaudeux
Committed by
GitHub
Mar 05, 2021
Browse files
[chore] Robustify CI, apt-get retries (#482)
parent
a05a79bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
.circleci/config.yml
.circleci/config.yml
+10
-0
No files found.
.circleci/config.yml
View file @
d168481c
...
...
@@ -63,6 +63,8 @@ install_dep_151: &install_dep_151
-
run
:
name
:
Install Dependencies with torch 1.5.1
command
:
|
# make sure that apt-get retries if needed
sudo sh -c "echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries"
sudo apt-get install -y libopenmpi-dev
# check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.5 && exit 0; fi
...
...
@@ -79,6 +81,8 @@ install_dep_160: &install_dep_160
-
run
:
name
:
Install Dependencies with torch 1.6.0
command
:
|
# make sure that apt-get retries if needed
sudo sh -c "echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries"
sudo apt-get install -y libopenmpi-dev
# check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.6 && exit 0; fi
...
...
@@ -96,6 +100,8 @@ install_dep_171: &install_dep_171
-
run
:
name
:
Install Dependencies with torch 1.7.1
command
:
|
# make sure that apt-get retries if needed
sudo sh -c "echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries"
sudo apt-get install -y libopenmpi-dev
# check if we have restored venv cache (/home/circleci/venv) correctly, if so, just skip
if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.7 && exit 0; fi
...
...
@@ -113,6 +119,8 @@ install_dep_171_cu110: &install_dep_171_cu110
-
run
:
name
:
Install Dependencies with torch 1.7.1+cu110
command
:
|
# make sure that apt-get retries if needed
sudo sh -c "echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries"
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install -y libopenmpi-dev
...
...
@@ -132,6 +140,8 @@ install_dep_180: &install_dep_180
-
run
:
name
:
Install Dependencies with torch 1.8.0 nightly
command
:
|
# make sure that apt-get retries if needed
sudo sh -c "echo 'APT::Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries"
sudo apt-get install -y libopenmpi-dev
# check if we have restored cache correctly, if so, just skip
if [ -f /home/circleci/venv/check_version.py ]; then python /home/circleci/venv/check_version.py torch eq 1.8 && exit 0; fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment