24小时热门版块排行榜    

查看: 2539  |  回复: 26

板桥霜

木虫 (正式写手)

引用回帖:
10楼: Originally posted by liqizuiyang at 2014-08-30 14:19:03
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....

Hi~
I did configure and make like this:
./configure --prefix=/cluster/lab-p1/openmpi
make
make check
o Error
make install
but when I did it again
./configure --prefix=/cluster/lab-p1/openmpi
make
make check
libtool: link: cannot find the library `../../ompi/libmpi.la' or unhandled argument `../../ompi/libmpi.la'
make[3]: *** [predefined_gap_test] Error 1
make[3]: Leaving directory `/usr/local/src/openmpi-1.8/ompi/debuggers'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/local/src/openmpi-1.8/ompi/debuggers'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/openmpi-1.8/ompi'
make: *** [check-recursive] Error 1
what should I do?>
thaks
11楼2014-08-30 17:41:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

FC=ifor CC=icc CXX=icpc
12楼2014-08-30 17:44:07
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liqizuiyang

木虫 (著名写手)

引用回帖:
11楼: Originally posted by 板桥霜 at 2014-08-30 17:41:51
Hi~
I did configure and make like this:
./configure --prefix=/cluster/lab-p1/openmpi
make
make check
o Error
make install
but when I did it again
./configure --prefix=/cluster/lab-p1/openmpi ...

Try 'make clean'. Then 'make check'.

I recommend an older version of openmpi if you are using the latest 1.8.x series.

Try the following command when compiling openmpi:
--------------------------------------------------------------------------
export CC=icc
export CXX=icpc
export FC=ifort
export F77=ifort
export CFLAGS=-O2
export CXXFLAGS=-O2
export FCFLAGS=-O2
export FFLAGS=-O2
./configure --prefix=$HOME/openmpi
---------------------------------------------------------------------------------

I do not think it a good idea to place the source code under /usr/local since it requires root previledge. Also, fierce optimization flags like '-O3' '-xHost' may be sources of trouble. So I recommend '-O2'.
13楼2014-08-30 18:06:51
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

引用回帖:
13楼: Originally posted by liqizuiyang at 2014-08-30 18:06:51
Try 'make clean'. Then 'make check'.

I recommend an older version of openmpi if you are using the latest 1.8.x series.

Try the following command when compiling openmpi:
---------------------- ...

make clean && make check
...
...
make  predefined_gap_test dlopen_test
make[3]: Entering directory `/usr/local/src/openmpi-1.8/ompi/debuggers'
  CC       predefined_gap_test.o
  CCLD     predefined_gap_test
libtool: link: cannot find the library `../../ompi/libmpi.la' or unhandled argument `../../ompi/libmpi.la'
make[3]: *** [predefined_gap_test] Error 1
make[3]: Leaving directory `/usr/local/src/openmpi-1.8/ompi/debuggers'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/local/src/openmpi-1.8/ompi/debuggers'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/openmpi-1.8/ompi'
make: *** [check-recursive] Error 1
what should I do?
hanks a lot
14楼2014-09-01 10:22:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

help please
15楼2014-09-01 22:25:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

I've tried openmpi1.6.4
/.configure --prefix=/cluster/lab-p1/openmpi-1.6.4/ CC=icc CXX=icpc
make check
...
...
make  predefined_gap_test dlopen_test
make[3]: Entering directory `/usr/local/src/openmpi-1.6.4/openmpi-1.6.4/ompi/debuggers'
  CC     predefined_gap_test.o
  CCLD   predefined_gap_test
libtool: link: cannot find the library `../../ompi/libmpi.la' or unhandled argument `../../ompi/libmpi.la'
make[3]: *** [predefined_gap_test] Error 1
make[3]: Leaving directory `/usr/local/src/openmpi-1.6.4/openmpi-1.6.4/ompi/debuggers'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/usr/local/src/openmpi-1.6.4/openmpi-1.6.4/ompi/debuggers'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/openmpi-1.6.4/openmpi-1.6.4/ompi'
make: *** [check-recursive] Error 1
16楼2014-09-01 22:41:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

any one here? help please
17楼2014-09-02 09:27:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

引用回帖:
13楼: Originally posted by liqizuiyang at 2014-08-30 18:06:51
Try 'make clean'. Then 'make check'.

I recommend an older version of openmpi if you are using the latest 1.8.x series.

Try the following command when compiling openmpi:
---------------------- ...

hi, you mentioned that it's not a good idea to place the source code under /usr/local, where should I place the code then ?
thank you very much
18楼2014-09-02 11:56:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liqizuiyang

木虫 (著名写手)

PLEASE DO EXACTLY as the instructions below.
In my case, this will build opempi successfuly with all the tests passed.

========================================================
1. Copy the source code to $HOME and decompress. I assume that you use openmpi-1.6.4.
tar -xf openmpi-1.6.4.bz2

2. Create a new directory named "build" under $HOME.
mkdir build

3. Go to build and set environmental variables.
cd build
export CC=icc
export CXX=icpc
export FC=ifort
export F77=ifort
export CFLAGS=-O2
export CXXFLAGS=-O2
export FCFLAGS=-O2
export FFLAGS=-O2

4. Run configure.
../openmpi-1.6.4/configure --prefix=$HOME/code/openmpi-1.6.4

5. Build openmpi.
make

6. Run the test suite.
make check

7. Install.
make install

========================================================

I don't know if you are the administrator of this cluster or not. But I noticed that in all the cases you put the source code under /usr/local and set the prefix to '/cluster/lab-p1/'. Modifications to these directories REQUIRE ROOT PREVILEDGES. I STRONGLY recommend that you should build and install openmpi under $HOME.
19楼2014-09-02 11:58:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

引用回帖:
19楼: Originally posted by liqizuiyang at 2014-09-02 11:58:55
PLEASE DO EXACTLY as the instructions below.
In my case, this will build opempi successfuly with all the tests passed.

========================================================
1. Copy the source ...

I will try, thanks again for your time.
20楼2014-09-02 12:20:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 板桥霜 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿武汉理工材料工程专硕调剂 +5 Doleres 2026-03-19 5/250 2026-03-19 20:14 by 制度的
[考研] 0703化学调剂 +4 18889395102 2026-03-18 4/200 2026-03-19 16:13 by 30660438
[考研] 材料与化工求调剂 +7 为学666 2026-03-16 7/350 2026-03-19 14:48 by 尽舜尧1
[考研] 一志愿 西北大学 ,070300化学学硕,总分287,双非一本,求调剂。 +3 晨昏线与星海 2026-03-19 3/150 2026-03-19 13:36 by houyaoxu
[考研] 281求调剂(0805) +9 烟汐忆海 2026-03-16 19/950 2026-03-19 11:42 by laoshidan
[考研] 一志愿中海洋材料工程专硕330分求调剂 +7 小材化本科 2026-03-18 7/350 2026-03-19 10:46 by Linda Hu
[考研] 0817调剂 +3 没有答案_ 2026-03-14 3/150 2026-03-19 09:51 by Xu de nuo
[考研] 354求调剂 +4 Tyoumou 2026-03-18 7/350 2026-03-18 21:45 by Tyoumou
[考研] 08工科 320总分 求调剂 +5 梨花珞晚风 2026-03-17 5/250 2026-03-18 14:49 by haxia
[考研] 311求调剂 +11 冬十三 2026-03-15 12/600 2026-03-18 14:36 by 星空星月
[考研] 312求调剂 +8 陌宸希 2026-03-16 9/450 2026-03-18 12:39 by Linda Hu
[考研] 0703化学336分求调剂 +6 zbzihdhd 2026-03-15 7/350 2026-03-18 09:53 by zhukairuo
[考研] 301求调剂 +9 yy要上岸呀 2026-03-17 9/450 2026-03-18 08:58 by 无际的草原
[考研] 277调剂 +5 自由煎饼果子 2026-03-16 6/300 2026-03-17 19:26 by 李leezz
[考研] 268求调剂 +8 一定有学上- 2026-03-14 9/450 2026-03-17 17:47 by laoshidan
[考研] 一志愿南京大学,080500材料科学与工程,调剂 +4 Jy? 2026-03-16 4/200 2026-03-17 11:02 by gaoqiong
[考研] 一志愿,福州大学材料专硕339分求调剂 +3 木子momo青争 2026-03-15 3/150 2026-03-17 07:52 by laoshidan
[考研] 0703化学调剂 290分有科研经历,论文在投 +7 腻腻gk 2026-03-14 7/350 2026-03-16 10:12 by houyaoxu
[考研] 080500,材料学硕302分求调剂学校 +4 初识可乐 2026-03-14 5/250 2026-03-14 21:08 by peike
[考研] 中科大材料与化工319求调剂 +3 孟鑫材料 2026-03-14 3/150 2026-03-14 20:10 by ms629
信息提示
请填处理意见