MPI compile 设置 centos 7
来源:互联网 发布:pc手机网站展示源码 编辑:程序博客网 时间:2024/06/17 02:12
需要使用openmpi的mpi.h文件才能成功compile,因此要安装openmpi:
sudo yum install openmpi-devel
简易方式
sudo yum install environment-modulessource /etc/profile.d/modules.shmodule add openmpi-x86_64
加入path
export PATH=$PATH:/usr/lib/openmpi/bin
将possum下makefile中加一行
CXX=mpicxx
若报错mpicc: error while loading shared libraries: libopen-pal.so.0: cannot open shared object file: No such file or directory
则
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib64/openmpi/1.3.2-gcc/lib/
If you have not taken a precompiled version, you will require:
GNU makeGNU installGCC C/C++ compiler (versions gcc-4.0, 4.1, 4.2 and 4.4 are known to work in general although 4.2 upwards is recommended).Header files for: expat libX11 libGL zlib
On Centos/RHEL you would install these with the command (assuming your account has sudo rights):
sudo yum install expat-devel libX11-devel mesa-libGL-devel zlib-devel
Make a folder to build the source code in, for example ~/fslbuild
Put the tar file into your build location, and unpack the sources :
cd ~/fslbuild tar zxf fsl-5.0.0-sources.tar.gz
Set the main FSL environment variables (for version 5.0.6 and above you first need to uncomment the lines related to FSLCONFDIR and FSLMACHTYPE in $FSLDIR/etc/fslconf/fsl.sh):
export FSLDIR=`pwd`/fsl. ${FSLDIR}/etc/fslconf/fsl.sh
Then check if your machine/compiler is supported by default:
ls $FSLDIR/config/$FSLMACHTYPE
If the above directory does not exist (the ls returns an error):
Select the closest match from the directories in $FSLDIR/config and do the following:
cp -r $FSLDIR/config/closestmatch $FSLDIR/config/$FSLMACHTYPE
Depending on how different your machine and compiler are from the closest match, you may need to edit the files inside the
If you wish to use your vendor supplied TCL/TK (or other third-party libraries, eg libpng) then edit the file
Once this test is done then the sources can be built with:
cd $FSLDIR./build
If you want to re-make a particular package in $FSLDIR/src (e.g. flirt) then first set the FSLDEVDIR environment variable to the same as FSLDIR and then just type:
make install
全部设置完,要使用以下方式运行
mpirun -np 3 ./possum
- MPI compile 设置 centos 7
- Compile FFmpeg on CentOS
- compile opencv in centos
- VS2010 MPI并行环境设置
- CentOS 7 设置网络
- CentOS 7 设置图形界面
- CentOS 7 时区设置
- CentOS 7 防火墙设置
- centos 7ssh设置
- Centos 7 设置 SFTP
- Centos 7 ip 设置
- (7) MPI-IO: MPI_File_seek
- MPI
- mpi
- MPI
- MPI
- MPI
- MPI
- leetcode #32 in cpp
- 【Android】自定义LinearLayout实现侧滑布局--SwipeLinearLayout
- NYOJ-32-组合数
- python2.7下安装scrapy
- 在实际管理中学习管理
- MPI compile 设置 centos 7
- eclipse 安卓开发环境搭建
- Android应用开发Scroller详解及源码浅析
- 旋转木马3D环形特效
- LeetCode: Edit Distance
- Strassen's algorithm to compute matrix multiplication
- #define
- gnu autotools 相关技术资料
- MATLAB FDATool IIR数字滤波器设计