yumでインストール
sudo yum install openmpi openmpi-devel sudo yum install mpich2 mpich2-devel # これは不要かも?
パス追加
~/.bashrcに追加
export PATH=$PATH:/usr/lib64/openmpi/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64/openmpi/lib export C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/include/openmpi-x86_64 export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH
python
ライブラリを追加
sudo yum install gcc gcc-c++ make git openssl-devel bzip2-devel zlib-devel readline-devel sqlite-devel bzip2 sqlite sudo yum -y install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel
pyenv
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
.bashrcに追加
export PYENV_ROOT=$HOME/.pyenv export PATH=$PYENV_ROOT/bin:$PATH eval "$(pyenv init -)"
python install
. ~/.bashrc pyenv install 3.6.2 pyenv global 3.6.2
mpi4pyを導入
pip install mpi4py
chainermn
wget https://github.com/NVIDIA/nccl/archive/v1.2.3-1+cuda7.5.tar.gz tar zxvfp v1.2.3-1+cuda7.5.tar.gz cd nccl-1.2.3-1-cuda7.5/ make sudo make install
pip install chainer python chainermn