You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

download_and_install_openmpi3_ubuntu.sh 884 B

4 years ago
12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. set -e
  3. if [ $(uname) == "Darwin" ]; then
  4. NPROC=$(sysctl -n hw.ncpu)
  5. else
  6. NPROC=$(nproc)
  7. fi
  8. mkdir -p $HOME/openmpi_tmp && cd $HOME/openmpi_tmp
  9. # TODO: upgrade to latest version once https://github.com/open-mpi/ompi/pull/5296 is in the release
  10. MPI_MAJOR=3
  11. MPI_MINOR=1
  12. VERSION=${MPI_MAJOR}.${MPI_MINOR}.0
  13. FILENAME=openmpi-${VERSION}.tar.bz2
  14. FOLDER=openmpi-${VERSION}
  15. URL=https://download.open-mpi.org/release/open-mpi/v${MPI_MAJOR}.${MPI_MINOR}/${FILENAME}
  16. [ ! -f ${FILENAME} ] && curl -vLOJ $URL
  17. tar -xf ${FILENAME}
  18. cd ${FOLDER}
  19. # will take about 8 min or longer depends on your machine
  20. ./configure --prefix=$HOME/local/openmpi
  21. make -j ${NPROC} all
  22. make install
  23. rm -rf $HOME/openmpi_tmp
  24. echo 'Update the PATH with OpenMPI bin by running: PATH=$PATH:$HOME/local/openmpi/bin'
  25. echo 'Update the PATH in ~/.bashrc if you want OpenMPI to be ready once the machine start'

TensorLayer3.0 是一款兼容多种深度学习框架为计算后端的深度学习库。计划兼容TensorFlow, Pytorch, MindSpore, Paddle.