24小时热门版块排行榜    

Znn3bq.jpeg
查看: 2581  |  回复: 26

板桥霜

木虫 (正式写手)

[求助] help---------openmpi 已有2人参与

hello every, I've got some problems when I try to compile hello_c.c, one sample of openmpi1.8 examples, the  messages are here:
./Makefile hello_c.c
./Makefile: line 27: CC: command not found
./Makefile: line 28: CXX: command not found
./Makefile: line 29: CCC: command not found
./Makefile: line 30: FC: command not found
./Makefile: line 31: JAVAC: command not found
./Makefile: line 32: SHMEMCC: command not found
./Makefile: line 33: SHMEMFC: command not found
./Makefile: line 40: CFLAGS: command not found
./Makefile: line 41: CXXFLAGS: command not found
./Makefile: line 42: CCFLAGS: command not found
./Makefile: line 43: FCFLAGS: command not found
./Makefile: line 47: EXAMPLES: command not found
./Makefile: line 70: all:: command not found
./Makefile: line 71: syntax error near unexpected token `then'
./Makefile: line 71: `        @ if which ompi_info >/dev/null 2>&1 ; then \'
[root@lab-host examples]# which mpicc
/home/han/program/openmpi/bin/mpicc
I have add the path of mpicc, mpic++ and mifort to PATH, what should I do?
Thanks alot
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

waiting online..............
2楼2014-08-28 09:40:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liliangfang

荣誉版主 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
在root下试试
yum install gcc*
3楼2014-08-29 07:54:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

引用回帖:
3楼: Originally posted by liliangfang at 2014-08-29 07:54:58
在root下试试
yum install gcc*

I've tried using root, still wrong.
and it's not about gcc, cause
$ rpm -qa |grep gcc
gcc-c++-4.4.6-3.el6.i686
gcc-gfortran-4.4.6-3.el6.i686
gcc-4.4.6-3.el6.i686
libgcc-4.4.6-3.el6.i686
The program was complied with icc, ifort
thanks anyway~
==================================================
The work was carried out in a cluster composed of 1 server(lib-host), 2 nodes(lib-p1 and lib-p2).
NFS, NIS, RSH, and ip ruls were set up.
now,  when I login the server as user (username han):
[han@lab-host ~]$ which mpicc
~/program/openmpi/bin/mpicc
[han@lab-host ~]$ which mpic++
~/program/openmpi/bin/mpic++
[han@lab-host ~]$ which mpifort
~/program/openmpi/bin/mpifort
[han@lab-host ~]$ which mpiexec
~/program/openmpi/bin/mpiexec
[han@lab-host ~]$ which mpirun
~/program/openmpi/bin/mpirun
===================================
I can locate the file here:
[han@lab-host ~]$ locate libsvml.so
/home/han/program/icc/composer_xe_2013_sp1.2.144/compiler/lib/ia32/libsvml.so
===================================
but when I log in the node , sth was wrong:

the program of "which " was correct
[han@lab-host ~]$ locate libsvml.so
/home/han/program/icc/composer_xe_2013_sp1.2.144/compiler/lib/ia32/libsvml.so
======================================
when I use the program of "locate"
[han@lab-p1 ~]$ locate libsvml.so
[han@lab-p1 ~]$
nothing was located
the enveriment variables of PATH, LD_LIBARARY_PATH was added. what' wrong with my cluster.....


thank you
4楼2014-08-29 09:02:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liqizuiyang

木虫 (著名写手)

It seems that the corresponding environmental variables are not correctly set. You may set them by "export CC=icc" "export CXX=icpc" etc. .

Anyway, there is no need to bother running the examples distributed along with the source code. Just try the testsuite by "make test". If it passes all the tests, then the compilation is successful.

It happened to me that openmpi with version number > 1.6.4 did not work well. On the contrary, the 1.6.4 version was proved to very robust. In fact, all the computers in our group employ this version.
5楼2014-08-29 09:24:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

引用回帖:
5楼: Originally posted by liqizuiyang at 2014-08-29 09:24:41
It seems that the corresponding environmental variables are not correctly set. You may set them by "export CC=icc" "export CXX=icpc" etc. .

Anyway, there is no need to bother r ...

[han@lab-host examples]$ make test
make: *** No rule to make target `test'.  Stop.
[han@lab-host examples]$
6楼2014-08-30 10:40:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

busstop

禁虫 (小有名气)

感谢参与,应助指数 +1
本帖内容被屏蔽

7楼2014-08-30 10:58:39
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

引用回帖:
7楼: Originally posted by busstop at 2014-08-30 10:58:39
5L已经指出问题了,应该是楼主环境变量没设好。
export PATH=……/bin:$PATH
export LD_LIBRARY_PATH=……/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=……/lib/openmpi:$LD_LIBRARY_PATH
lz,2、3行填了么 ...

[han@lab-host examples]$ echo $PATH
/home/han/program/icc/bin:/home/han/program/openmpi/bin:/home/han/program/openmpi/bin:/home/han/program/icc/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/han/bin
[han@lab-host examples]$ echo $LD_LIBRARY_PATH
/home/han/program/icc/lib/ia32:/home/han/program/icc/composer_xe_2013_sp1.2.144/compiler/lib/ia32:/home/han/program/openmpi/lib:/home/han/program/icc/lib/ia32:/home/han/program/openmpi/lib:
These are my environmental variables.............
8楼2014-08-30 11:21:45
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

environmental variables on nodes lab-p1 and lab-p2 are:
[han@lab-p2 ~]$ echo $PATH
/home/han/program/icc/bin:/home/han/program/openmpi/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/han/bin
[han@lab-p2 ~]$ echo $LD_LIBRARY_PATH
/home/han/program/icc/lib/ia32:/home/han/program/icc/composer_xe_2013_sp1.2.144/compiler/lib/ia32:/home/han/program/openmpi/lib:
9楼2014-08-30 11:46:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liqizuiyang

木虫 (著名写手)

引用回帖:
6楼: Originally posted by 板桥霜 at 2014-08-30 10:40:51
$ make test
make: *** No rule to make target `test'.  Stop.
$...

Try "make test" at the top directory of the openmpi source code, not at the directory of 'examples'.

If this does not work, try 'make check' instead.
10楼2014-08-30 14:19:03
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 板桥霜 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 294求调剂 +15 淡然654321 2026-04-15 15/750 2026-04-19 08:20 by cuisz
[考研] 求调剂 +4 苦命人。。。 2026-04-18 4/200 2026-04-19 02:01 by 烟雨流涯
[考研] 0854求调剂 +23 门路摸摸 2026-04-15 27/1350 2026-04-19 01:59 by 烟雨流涯
[考研] 300求调剂 +12 橙a777 2026-04-15 12/600 2026-04-18 23:51 by 路病情
[考研] 291求调剂 +10 关忆北. 2026-04-14 10/500 2026-04-18 23:32 by 路病情
[有机交流] 二苯甲酮酸类衍生物 50+3 小白爱主人 2026-04-17 6/300 2026-04-17 18:47 by kf2781974
[考研] 一志愿中科大材料与化工,353分还有调剂学校吗 +10 否极泰来2026 2026-04-15 12/600 2026-04-17 17:54 by mapenggao
[考研] 322求调剂 +6 tekuzu 2026-04-17 6/300 2026-04-17 13:48 by Espannnnnol
[考研] 291求调剂 +11 关忆北. 2026-04-14 11/550 2026-04-16 15:18 by jiahl2024
[考研] 26药学专硕105500求调剂 +6 喽哈加油 2026-04-13 7/350 2026-04-16 14:31 by zhouxiaoyu
[基金申请] RY:中国产出的科学垃圾论文,绝对数量和比例都世界第一 +7 zju2000 2026-04-14 18/900 2026-04-16 11:36 by 欢乐颂叶蓁
[考研] 药学求调剂 +14 喽哈加油 2026-04-14 16/800 2026-04-16 10:15 by beilsong20
[考研] 0854调剂 +13 长弓傲 2026-04-12 16/800 2026-04-15 13:45 by fenglj492
[考研] 085801电气专硕272求调剂 +19 电气李 2026-04-13 21/1050 2026-04-15 13:37 by 黑科技矿业
[考研] 297工科调剂? +14 河南农业大学-能 2026-04-13 15/750 2026-04-15 13:25 by 黑科技矿业
[考研] 食品与营养(0955)271求调剂 +15 升格阿达 2026-04-12 16/800 2026-04-14 13:18 by 浮若_安生
[考研] 085600材料与化工329分求调剂 +24 叶zilin 2026-04-13 25/1250 2026-04-14 09:20 by 试管破裂
[考研] 085600材料与化工349分求调剂 +16 李木子啊哈哈 2026-04-12 17/850 2026-04-14 09:11 by fenglj492
[考研] 2026硕士调剂_能动_河南农业大学 +4 河南农业大学-能 2026-04-12 4/200 2026-04-13 22:01 by bljnqdcc
[考研] 339求调剂 +4 hanwudada 2026-04-12 4/200 2026-04-13 12:03 by 蓝云思雨
信息提示
请填处理意见