Dear All:
I am trying to install boost on MPI clsuter with MPICH2.
After ./bjam install, I compile a test program provided by boost.org .
But I got errors: The program is :-----------------------------------------------------------------#include <iostream>#include
Sent from my iPad
On Aug 3, 2010, at 10:54 AM, Jack Bryan
Dear All:
I am trying to install boost on MPI clsuter with MPICH2.
After ./bjam install, I compile a test program provided by boost.org .
But I got errors: The program is : ----------------------------------------------------------------- #include <iostream> #include
#include namespace mpi = boost::mpi;
int main(int argc, char* argv[]) { mpi::environment env(argc, argv); mpi::communicator world; std::cout << "I am process " << world.rank() << " of " << world.size() << "." << std::endl; return 0; } --------------------------------------------------------------
Errors: ------------------------------------------------------------------ mpic++ -o testp2p test_p2p.cpp -I/home/boost_2010_8_1/boost_1_43_0 -L/home/boost_2010_8_1/boost_1_43_0/stage/lib -lboost_mpi -lboost_serialization /usr/bin/ld: warning: liblam.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: liblamf77mpi.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: liblammpi++.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link) /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_short' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_unsigned' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Comm::mpi_comm_map' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `op_intercept' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_errors_return' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Intracomm::current_op' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_comm_world' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_unsigned_char' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_char' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Comm::mpi_err_map' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_group_empty' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_packed' collect2: ld returned 1 exit status
-------------------------------------------------------------------
It seems that it needs LAM/MPI.
But, the LAM/MPI has been installed:
PATH=/home/openmpi_123/bin:/home/boost_2010_8_1/boost_1_43_0: .......
I used ./bjam --prefix=mypath and then ./bjam and then ./bjam install Any help is appreciated.
Any help is appreciated.
Hi Jack, Can you sure to specify the right MPI wrapper compiler and make sure that it works, by compiling an MPI program using the C API, before building Boost. Matthias
thanks for reply.The cluster has been installed with openMPI and mpich2.Do I still use MPI wrapper compiler to re-compile it ?What is meaning of "by compiling an MPI program using the C API, before building Boost."Any help is appreciated. Jack Aug. 3 2010
From: troyer@phys.ethz.ch To: boost-users@lists.boost.org Date: Tue, 3 Aug 2010 15:13:17 -0600 Subject: Re: [Boost-users] boost MPI install error
Sent from my iPad
On Aug 3, 2010, at 10:54 AM, Jack Bryan
wrote: Dear All:
I am trying to install boost on MPI clsuter with MPICH2.
After ./bjam install, I compile a test program provided by boost.org .
But I got errors: The program is : ----------------------------------------------------------------- #include <iostream> #include
#include namespace mpi = boost::mpi;
int main(int argc, char* argv[]) { mpi::environment env(argc, argv); mpi::communicator world; std::cout << "I am process " << world.rank() << " of " << world.size() << "." << std::endl; return 0; } --------------------------------------------------------------
Errors: ------------------------------------------------------------------ mpic++ -o testp2p test_p2p.cpp -I/home/boost_2010_8_1/boost_1_43_0 -L/home/boost_2010_8_1/boost_1_43_0/stage/lib -lboost_mpi -lboost_serialization /usr/bin/ld: warning: liblam.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: liblamf77mpi.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: liblammpi++.so.0, needed by /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so, not found (try using -rpath or -rpath-link) /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_short' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_unsigned' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Comm::mpi_comm_map' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `op_intercept' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_errors_return' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Intracomm::current_op' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_comm_world' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_unsigned_char' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_char' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `PMPI::Comm::mpi_err_map' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_group_empty' /home/boost_2010_8_1/boost_1_43_0/stage/lib/libboost_mpi.so: undefined reference to `lam_mpi_packed' collect2: ld returned 1 exit status
-------------------------------------------------------------------
It seems that it needs LAM/MPI.
But, the LAM/MPI has been installed:
PATH=/home/openmpi_123/bin:/home/boost_2010_8_1/boost_1_43_0: .......
I used ./bjam --prefix=mypath and then ./bjam and then ./bjam install Any help is appreciated.
Any help is appreciated.
Hi Jack,
Can you sure to specify the right MPI wrapper compiler and make sure that it works, by compiling an MPI program using the C API, before building Boost.
Matthias _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 3 Aug 2010, at 15:20, Jack Bryan wrote:
thanks for reply. The cluster has been installed with openMPI and mpich2.
I doubt it since you actually include the LAM headers - look at the linker errors!
Do I still use MPI wrapper compiler to re-compile it ? What is meaning of "by compiling an MPI program using the C API, before building Boost."
Get a simple MPI program using the native C API to work first. Matthias
thanks for reply.
My test program works well.
#include
From: troyer@phys.ethz.ch Date: Tue, 3 Aug 2010 17:14:04 -0600 To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost MPI install error
On 3 Aug 2010, at 15:20, Jack Bryan wrote:
thanks for reply. The cluster has been installed with openMPI and mpich2.
I doubt it since you actually include the LAM headers - look at the linker errors!
Do I still use MPI wrapper compiler to re-compile it ? What is meaning of "by compiling an MPI program using the C API, before building Boost."
Get a simple MPI program using the native C API to work first.
Matthias
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 3 Aug 2010, at 17:45, Jack Bryan wrote:
thanks for reply.
My test program works well.
#include
#include "mpi.h" int main(int argc, char* argv[]) { int rank, size; MPI_Init(0,0); MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_COMM_WORLD, &rank); printf("I am process %d out of total process \n\n ", rank, size ); MPI_Finalize(); return 0; }
What may be the reason for the boost MPI install failure ?
How do you compile this? And do you use the same compiler when building Boost? Matthias
I used mpicc to compile it.
I used ./bjam to compile and ./bjam install boost.
Any help is appreciated.
Jack
From: troyer@phys.ethz.ch
Date: Tue, 3 Aug 2010 20:27:12 -0600
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] boost MPI install error
On 3 Aug 2010, at 17:45, Jack Bryan wrote:thanks for reply.
My test program works well.
#include
On 3 Aug 2010, at 20:58, Jack Bryan wrote:
I used mpicc to compile it.
I used ./bjam to compile and ./bjam install boost.
Any help is appreciated.
Jack From: troyer@phys.ethz.ch Date: Tue, 3 Aug 2010 20:27:12 -0600 To: boost-users@lists.boost.org Subject: Re: [Boost-users] boost MPI install error
On 3 Aug 2010, at 17:45, Jack Bryan wrote:
thanks for reply.
My test program works well.
#include
#include "mpi.h" int main(int argc, char* argv[]) { int rank, size; MPI_Init(0,0); MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_COMM_WORLD, &rank); printf("I am process %d out of total process \n\n ", rank, size ); MPI_Finalize(); return 0; }
What may be the reason for the boost MPI install failure ?
How do you compile this? And do you use the same compiler when building Boost?
It seems that you use a different wrapper compiler when building MPI. Did you look at http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.c... and specify the *same* mpiCC that you use to compile your test programs? Matthias
I used mpicc to compile it. I used ./bjam to compile and ./bjam install boost.Any help is appreciated. Jack From: troyer@phys.ethz.ch
Date: Tue, 3 Aug 2010 21:05:23 -0600
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] boost MPI install error
On 3 Aug 2010, at 20:58, Jack Bryan wrote:I used mpicc to compile it.
I used ./bjam to compile and ./bjam install boost.
Any help is appreciated.
Jack
From: troyer@phys.ethz.ch
Date: Tue, 3 Aug 2010 20:27:12 -0600
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] boost MPI install error
On 3 Aug 2010, at 17:45, Jack Bryan wrote:thanks for reply.
My test program works well.
#include
On Thursday, 5. August 2010 17:25:08 you wrote:
I used mpicc to compile it.
I used ./bjam to compile and ./bjam install boost.
Then it would be interesting which MPI wrapper was detected. Please take a look at "bjam --help" and then scan the output of "bjam --debug-configuration" for the section | ===============MPI Auto-configuration=============== which in my case contains: | Found recent LAM-MPI or Open MPI wrapper compiler: mpic++ | MPI compilation flags: -I/usr/lib/openmpi/include -I /usr/lib/openmpi/include/openmpi -pthread
Any help is appreciated.
Hope this helps. I suspect you must configure your MPI wrapper in user- config.jam. yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
participants (3)
-
Jack Bryan
-
Jürgen Hunold
-
Matthias Troyer