Add horovod tests
PiperOrigin-RevId: 319145206 Change-Id: I44f186249e609caa570eef7d48b53da83214eb44
This commit is contained in:
parent
1bf8f49335
commit
3be438aca2
@ -35,12 +35,32 @@ fi
|
|||||||
wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.4.tar.gz
|
wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.4.tar.gz
|
||||||
tar xvf openmpi-4.0.4.tar.gz
|
tar xvf openmpi-4.0.4.tar.gz
|
||||||
|
|
||||||
cd openmpi
|
# Install gcc.
|
||||||
|
sudo apt install --assume-yes build-essential
|
||||||
|
|
||||||
|
gcc --version
|
||||||
|
|
||||||
|
cd openmpi-4.0.4
|
||||||
./configure
|
./configure
|
||||||
|
|
||||||
# Install open-mpi.
|
# Install open-mpi.
|
||||||
sudo make all install
|
sudo make all install
|
||||||
|
export LD_LIBRARY_PATH=/usr/local/lib/openmpi
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
|
|
||||||
|
# Install Horovod.
|
||||||
|
cd ..
|
||||||
|
pip3 install horovod tensorflow
|
||||||
|
|
||||||
|
# Install tests.
|
||||||
|
git clone https://github.com/DEKHTIARJonathan/TF_HVD_Stability_Test.git
|
||||||
|
|
||||||
|
# Install pytest.
|
||||||
|
pip3 install -U pytest
|
||||||
|
|
||||||
|
# Install requirements.
|
||||||
|
cd TF_HVD_Stability_Test
|
||||||
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
# Run the tests.
|
||||||
|
python3 -m pytest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user