运行MPI程序出错如 mpirun -np 10 mpi

运行MPI程序出错如 mpirun -np 10 mpi,第1张

$mpd &

A file named .mpd.conf file must be present in the user's home

directory (/etc/mpd.conf if root) with read and write access

only for the user, and must contain at least a line with:

MPD_SECRETWORD=<secretword>

One way to safely create this file is to do the following:

cd $HOME

touch .mpd.conf

chmod 600 .mpd.conf

and then use an editor to insert a line like

MPD_SECRETWORD=mr45-j9z

into the file. (Of course use some other secret word than mr45-j9z.)

这是由于intel compiler的环境没设置好,应该把相应的库文件路径加入 .bashrc

用文本编辑器打开个人主目录下面的.bashrc(~/.bashrc),

加入类似于下面的两行信息(第一行是icc的、第一行是ifort的)并保存:

source /etc/Intel_Compiler/10.0/XXXX/iccvars_intel64.sh

source /etc/Intel_Compiler/10.0/XXXX/ifortvars_intel64.sh

具体绝对路径需要根据你的运行环境中两个文件所在的位置作修改,

另外如果你使用的不是64而是32位程序,那么需要找到相应的.sh文件。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/8041681.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-12
下一篇 2023-04-12

发表评论

登录后才能评论

评论列表(0条)

保存