24小时热门版块排行榜    

查看: 2501  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 板桥霜 的主题更新
信息提示
请填处理意见