@@ -25,7 +25,7 @@ concurrency:
25
25
jobs :
26
26
horovod-tests :
27
27
runs-on : ubuntu-latest
28
- timeout-minutes : 60
28
+ timeout-minutes : 120
29
29
strategy :
30
30
matrix :
31
31
python-version : ["3.11"]
@@ -64,15 +64,15 @@ jobs:
64
64
#install other dependencies
65
65
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
66
66
pip install -r requirements-dev.txt
67
-
67
+
68
68
# Install Horovod from source and apply a patch to build with recent pytorch
69
- # We can't use pip install <whatever> as build-env can't find pytorch and
69
+ # We can't use pip install <whatever> as build-env can't find pytorch and
70
70
# `--no-build-isolation` does not work with horovod setup.py
71
71
git clone --recursive https://github.com/horovod/horovod.git /tmp/horovod
72
72
cd /tmp/horovod
73
73
sed -i "s/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g" CMakeLists.txt
74
- sed -i "s/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g" horovod/torch/CMakeLists.txt
75
- HOROVOD_WITH_PYTORCH=1 python setup.py install
74
+ sed -i "s/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g" horovod/torch/CMakeLists.txt
75
+ HOROVOD_WITH_PYTORCH=1 python setup.py install
76
76
cd -
77
77
# test the installation:
78
78
python -c "import horovod.torch as hvd; hvd.mpi_ops.Sum"
@@ -90,11 +90,11 @@ jobs:
90
90
- name : Run Tests
91
91
uses : nick-fields/retry@v3
92
92
with :
93
- max_attempts : 5
94
- timeout_minutes : 15
93
+ max_attempts : 3
94
+ timeout_minutes : 40
95
95
shell : bash
96
- command : bash tests/run_cpu_tests.sh
97
- new_command_on_retry : USE_LAST_FAILED=1 bash tests/run_cpu_tests.sh
96
+ command : USE_XDIST=0 bash tests/run_cpu_tests.sh
97
+ new_command_on_retry : USE_LAST_FAILED=1 USE_XDIST=0 bash tests/run_cpu_tests.sh
98
98
99
99
- name : Upload coverage to Codecov
100
100
uses : codecov/codecov-action@v3
0 commit comments