24小时热门版块排行榜    

查看: 3044  |  回复: 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一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +5 2rKfVQg2jQww 2026-11-06 16/800 2026-11-09 06:54 by l48hFd8Nwae2
[考研] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +5 5sJFDKp2kwuI 2026-11-06 13/650 2026-11-09 06:50 by l48hFd8Nwae2
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 5sJFDKp2kwuI 2026-11-06 15/750 2026-11-09 06:43 by l48hFd8Nwae2
[考研] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +3 5sJFDKp2kwuI 2026-11-06 12/600 2026-11-09 06:32 by l48hFd8Nwae2
[论文投稿] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 5sJFDKp2kwuI 2026-11-06 14/700 2026-11-09 06:32 by l48hFd8Nwae2
[公派出国] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 5sJFDKp2kwuI 2026-11-06 8/400 2026-11-09 00:14 by l48hFd8Nwae2
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 5sJFDKp2kwuI 2026-11-06 9/450 2026-11-08 21:29 by l48hFd8Nwae2
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +10 ncTVBM6AOJHF 2026-11-04 22/1100 2026-11-06 17:18 by 5sJFDKp2kwuI
[公派出国] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 ELBZ6WwEaRj6 2026-11-05 5/250 2026-11-06 16:43 by 5sJFDKp2kwuI
[公派出国] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +5 ttH3f1oA6ace 2026-11-04 10/500 2026-11-06 16:12 by 5sJFDKp2kwuI
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +4 ttH3f1oA6ace 2026-11-04 11/550 2026-11-06 16:10 by 5sJFDKp2kwuI
[硕博家园] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +6 ncTVBM6AOJHF 2026-11-04 11/550 2026-11-06 13:47 by BkA9Bi5cMhkD
[公派出国] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +8 ncTVBM6AOJHF 2026-11-04 12/600 2026-11-06 13:47 by BkA9Bi5cMhkD
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +8 ncTVBM6AOJHF 2026-11-04 14/700 2026-11-06 13:36 by BkA9Bi5cMhkD
[硕博家园] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 ELBZ6WwEaRj6 2026-11-04 12/600 2026-11-06 05:32 by qL1cU46YIdK0
[公派出国] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +5 kvewwGtKktqB 2026-11-04 14/700 2026-11-06 05:10 by qL1cU46YIdK0
[考博] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +4 kvewwGtKktqB 2026-11-04 11/550 2026-11-06 05:10 by qL1cU46YIdK0
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +4 ncTVBM6AOJHF 2026-11-04 12/600 2026-11-06 04:47 by qL1cU46YIdK0
[硕博家园] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 ELBZ6WwEaRj6 2026-11-04 8/400 2026-11-06 02:24 by qL1cU46YIdK0
[公派出国] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 ELBZ6WwEaRj6 2026-11-04 9/450 2026-11-06 02:15 by qL1cU46YIdK0
信息提示
请填处理意见