Last active
January 22, 2019 14:51
-
-
Save kingspp/39a0d5518003005fad23a213ff4b92d1 to your computer and use it in GitHub Desktop.
AWS Deep Learning AMI with NCCL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install fish | |
cd /etc/yum.repos.d/ | |
sudo wget https://download.opensuse.org/repositories/shells:fish:release:2/RedHat_RHEL-6/shells:fish:release:2.repo | |
sudo yum install fish | |
# Update locatedb | |
sudo ionice -c3 updatedb | |
# Install g++ | |
sudo yum install gcc72-c++ | |
# Install Open MPI v4 | |
wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.0.tar.gz | |
tar -xvf openmpi-4.0.0.tar.gz | |
cd openmpi-4.0.0 | |
./configure --prefix=/usr/local | |
make all | |
sudo make install | |
sudo ldconfig | |
# Install tensorflow | |
sudo python3 -m pip3 install tensorflow-gpu==1.8.0 | |
# Install horovod | |
HOROVOD_CUDA_HOME=/usr/local/cuda-9.0 HOROVOD_GPU_ALLREDUCE=NCCL sudo python3 -m pip install --no-cache-dir horovod | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment