24小时热门版块排行榜    

查看: 2902  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 板桥霜 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:42 by ZvyPK8n6Nfki
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:34 by ZvyPK8n6Nfki
[找工作] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:28 by ZvyPK8n6Nfki
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:18 by ZvyPK8n6Nfki
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 tqUTOxClQUMF 2026-09-28 3/150 2026-09-28 23:46 by b8fCuTHqckEt
[考博] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +4 GDBe8tDZqE8z 2026-09-28 4/200 2026-09-28 23:19 by b8fCuTHqckEt
[考研] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 GDBe8tDZqE8z 2026-09-28 3/150 2026-09-28 23:12 by b8fCuTHqckEt
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 CfXuS1rDhLYN 2026-09-28 4/200 2026-09-28 22:55 by ez6fGg9abYaj
[公派出国] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +4 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 22:55 by ez6fGg9abYaj
[博后之家] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +4 IDs3scOF0tjC 2026-09-28 5/250 2026-09-28 22:45 by ez6fGg9abYaj
[有机交流] 同一个分子,一条来自文献,一条来自AI——不告诉你答案,你会选哪条? +3 tianxiaoxian 2026-09-28 6/300 2026-09-28 22:44 by tianxiaoxian
[找工作] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 5/250 2026-09-28 22:32 by ez6fGg9abYaj
[公派出国] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 22:28 by ez6fGg9abYaj
[博后之家] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 3/150 2026-09-28 22:21 by ez6fGg9abYaj
[考博] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 6/300 2026-09-28 22:15 by ez6fGg9abYaj
[论文投稿] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 CfXuS1rDhLYN 2026-09-28 3/150 2026-09-28 19:08 by 9lS3ad5oOymn
[考研] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 18:51 by 9lS3ad5oOymn
[找工作] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 17:30 by ZYXdhzDAy9ZX
[教师之家] 某top大学教授说“能够在市场中兑现的能力才是真能力”无比同意! +7 zju2000 2026-09-26 8/400 2026-09-28 16:42 by beefly
[教师之家] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 GDBe8tDZqE8z 2026-09-28 3/150 2026-09-28 15:32 by ZYXdhzDAy9ZX
信息提示
请填处理意见