From 3af09515c527dc48f84b65ee178d05399efac1ac Mon Sep 17 00:00:00 2001 From: vfdev Date: Tue, 1 Oct 2024 15:35:15 +0000 Subject: [PATCH] Build horovod from source --- .github/workflows/hvd-tests.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/hvd-tests.yml b/.github/workflows/hvd-tests.yml index 2f490ed6992..f4bd9950073 100644 --- a/.github/workflows/hvd-tests.yml +++ b/.github/workflows/hvd-tests.yml @@ -28,14 +28,7 @@ jobs: timeout-minutes: 60 strategy: matrix: - # Horovod installed on python 3.11, 3.10 fails with error: - # ignite/distributed/comp_models/horovod.py:159: in _HorovodDistModel - # "SUM": hvd.mpi_ops.Sum, - # E AttributeError: module 'horovod.torch' has no attribute 'mpi_ops' - # Extension horovod.torch has not been built: /opt/hostedtoolcache/Python/3.11.10/x64/lib/python3.11/site-packages/horovod/torch/mpi_lib_v2.cpython-311-x86_64-linux-gnu.so not found - # If this is not expected, reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error. - # Warning! MPI libs are missing, but python applications are still available. - python-version: ["3.9"] + python-version: ["3.11"] pytorch-channel: [pytorch] steps: @@ -71,7 +64,7 @@ jobs: #install other dependencies pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu pip install -r requirements-dev.txt - pip install horovod + pip install git+https://github.com/horovod/horovod.git python setup.py install # Download MNIST: https://github.com/pytorch/ignite/issues/1737