Openmpi安装

从Openmpi官方下载openmpi-1.8.8.tar.gz

./configure -prefix=/root/bin/openmpi1.8.8 CC=icc CXX=icpc F77=ifort FC=ifort F90=ifort && make -j 2 && make install

.bashrc添加,

export PATH=/root/bin/openmpi1.8.8/bin:$PATH
export LD_LIBRARY_PATH=/root/bin/openmpi1.8.8/lib:$LD_LIBRARY_PATH
export MANPATH=/root/bin/openmpi1.8.8/share/man:$MANPATH
#export OMP_NUM_THREADS=2

运行

mpirun -np 2 --allow-run-as-root

发表评论

电子邮件地址不会被公开。 必填项已用*标注

92 − 89 =