Hey!
I'm using alps-1.3.4 and compiled it (X86_64, mpic++.openmpi) successfully with openmpi-1.4.2 and want to use the mpi implementation for my SSE program. Compiling my program (mpi_phonon) I'll get following error:
make mpi_phonon mpic++.openmpi -DNDEBUG -I/proj/manybody/pippan/ALPS/sources/boost_1_38_0 -I/proj/manybody/ALPS/lenny/include -I/proj/manybody/libs/openmpi-1.4.2/64bit/lib -o mpi_phonon mpi_phonon.o SSE.Directed.o SSE.Measurements.o SSE.o SSE.Update.o SSE.Initialization.o SSE.Greens.o SSE.PhononInterface.o PhononsInXL2D.o -L/proj/manybody/ALPS/64bit/mpi/lib -pg -lalps -lcomm-mpi -llapack -lf77blas -latlas -lpthread -lm -lmpi_cxx -lmpi -lopen-rte -lopen-pal -lfftw3 -llpk mpi_phonon.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x28): undefined reference to `MPI::Win::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntercommE[vtable for MPI::Intercomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9GraphcommE[vtable for MPI::Graphcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI8CartcommE[vtable for MPI::Cartcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntracommE[vtable for MPI::Intracomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI4CommE[vtable for MPI::Comm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' collect2: ld returned 1 exit status make: *** [mpi_phonon] Fehler 1
Is there anyone who knows about this? Am I using the wrong mpi version? (Needs ALPS mpich?) thanks for comments!
On 21 Sep 2010, at 11:54, Michael Franz Krenn wrote:
Hey!
I'm using alps-1.3.4 and compiled it (X86_64, mpic++.openmpi) successfully with openmpi-1.4.2 and want to use the mpi implementation for my SSE program. Compiling my program (mpi_phonon) I'll get following error:
make mpi_phonon mpic++.openmpi -DNDEBUG -I/proj/manybody/pippan/ALPS/sources/boost_1_38_0 -I/proj/manybody/ALPS/lenny/include -I/proj/manybody/libs/openmpi-1.4.2/64bit/lib -o mpi_phonon mpi_phonon.o SSE.Directed.o SSE.Measurements.o SSE.o SSE.Update.o SSE.Initialization.o SSE.Greens.o SSE.PhononInterface.o PhononsInXL2D.o -L/proj/manybody/ALPS/64bit/mpi/lib -pg -lalps -lcomm-mpi -llapack -lf77blas -latlas -lpthread -lm -lmpi_cxx -lmpi -lopen-rte -lopen-pal -lfftw3 -llpk mpi_phonon.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x28): undefined reference to `MPI::Win::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntercommE[vtable for MPI::Intercomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9GraphcommE[vtable for MPI::Graphcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI8CartcommE[vtable for MPI::Cartcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntracommE[vtable for MPI::Intracomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI4CommE[vtable for MPI::Comm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' collect2: ld returned 1 exit status make: *** [mpi_phonon] Fehler 1
Is there anyone who knows about this? Am I using the wrong mpi version? (Needs ALPS mpich?) thanks for comments!
Hi,
This looks like a problem with your MPI installation. Have you tested it with other C++ codes? We recommend that you do not use the mpic++.openmpi wrapper but explicitly specify the list of libraries, and only link the MPI C but not the C++ libraries. That will avoid the above linker problem.
Matthias
PS: why don't you use ALPS 2.0?
Hey!
May you have an example for a ALPS program using MPI? I did my thesis in ALPS-1.3.4, because I'm just implementing a tempering in my program – but if everything works fine, I'll change everything to ALPS 2.0.
I reinstalled MPI and use the MPI C libraries, but have still the same problems.
Lg michael
Zitat von Matthias Troyer troyer@phys.ethz.ch:
On 21 Sep 2010, at 11:54, Michael Franz Krenn wrote:
Hey!
I'm using alps-1.3.4 and compiled it (X86_64, mpic++.openmpi) successfully with openmpi-1.4.2 and want to use the mpi implementation for my SSE program. Compiling my program (mpi_phonon) I'll get following error:
make mpi_phonon mpic++.openmpi -DNDEBUG -I/proj/manybody/pippan/ALPS/sources/boost_1_38_0 -I/proj/manybody/ALPS/lenny/include -I/proj/manybody/libs/openmpi-1.4.2/64bit/lib -o mpi_phonon mpi_phonon.o SSE.Directed.o SSE.Measurements.o SSE.o SSE.Update.o SSE.Initialization.o SSE.Greens.o SSE.PhononInterface.o PhononsInXL2D.o -L/proj/manybody/ALPS/64bit/mpi/lib -pg -lalps -lcomm-mpi -llapack -lf77blas -latlas -lpthread -lm -lmpi_cxx -lmpi -lopen-rte -lopen-pal -lfftw3 -llpk mpi_phonon.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x28): undefined reference to `MPI::Win::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntercommE[vtable for MPI::Intercomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9GraphcommE[vtable for MPI::Graphcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI8CartcommE[vtable for MPI::Cartcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntracommE[vtable for MPI::Intracomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI4CommE[vtable for MPI::Comm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' collect2: ld returned 1 exit status make: *** [mpi_phonon] Fehler 1
Is there anyone who knows about this? Am I using the wrong mpi version? (Needs ALPS mpich?) thanks for comments!
Hi,
This looks like a problem with your MPI installation. Have you tested it with other C++ codes? We recommend that you do not use the mpic++.openmpi wrapper but explicitly specify the list of libraries, and only link the MPI C but not the C++ libraries. That will avoid the above linker problem.
Matthias
PS: why don't you use ALPS 2.0?
Regarding: "I reinstalled MPI and use the MPI C libraries" did you compile MPI with C++ binding enabled? That is not necessarily default. If I remember correctly, with both MPICH2 and OpenMPI, you need to pass "-with-cxx" to configure to enable the C++ bindings.
Jeff
On Tue, Sep 28, 2010 at 8:09 AM, Michael Franz Krenn krenn_mi@sbox.tugraz.at wrote:
Hey!
May you have an example for a ALPS program using MPI? I did my thesis in ALPS-1.3.4, because I'm just implementing a tempering in my program – but if everything works fine, I'll change everything to ALPS 2.0.
I reinstalled MPI and use the MPI C libraries, but have still the same problems.
Lg michael
Zitat von Matthias Troyer troyer@phys.ethz.ch:
On 21 Sep 2010, at 11:54, Michael Franz Krenn wrote:
Hey!
I'm using alps-1.3.4 and compiled it (X86_64, mpic++.openmpi) successfully with openmpi-1.4.2 and want to use the mpi implementation for my SSE program. Compiling my program (mpi_phonon) I'll get following error:
make mpi_phonon mpic++.openmpi -DNDEBUG -I/proj/manybody/pippan/ALPS/sources/boost_1_38_0 -I/proj/manybody/ALPS/lenny/include -I/proj/manybody/libs/openmpi-1.4.2/64bit/lib -o mpi_phonon mpi_phonon.o SSE.Directed.o SSE.Measurements.o SSE.o SSE.Update.o SSE.Initialization.o SSE.Greens.o SSE.PhononInterface.o PhononsInXL2D.o -L/proj/manybody/ALPS/64bit/mpi/lib -pg -lalps -lcomm-mpi -llapack -lf77blas -latlas -lpthread -lm -lmpi_cxx -lmpi -lopen-rte -lopen-pal -lfftw3 -llpk mpi_phonon.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x28): undefined reference to `MPI::Win::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntercommE[vtable for MPI::Intercomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9GraphcommE[vtable for MPI::Graphcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI8CartcommE[vtable for MPI::Cartcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntracommE[vtable for MPI::Intracomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI4CommE[vtable for MPI::Comm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' collect2: ld returned 1 exit status make: *** [mpi_phonon] Fehler 1
Is there anyone who knows about this? Am I using the wrong mpi version? (Needs ALPS mpich?) thanks for comments!
Hi,
This looks like a problem with your MPI installation. Have you tested it with other C++ codes? We recommend that you do not use the mpic++.openmpi wrapper but explicitly specify the list of libraries, and only link the MPI C but not the C++ libraries. That will avoid the above linker problem.
Matthias
PS: why don't you use ALPS 2.0?
Hi,
we don't want and need the C++ bindings since we use only the C API
Matthias
On Sep 28, 2010, at 3:35 PM, Jeff Hammond wrote:
Regarding: "I reinstalled MPI and use the MPI C libraries" did you compile MPI with C++ binding enabled? That is not necessarily default. If I remember correctly, with both MPICH2 and OpenMPI, you need to pass "-with-cxx" to configure to enable the C++ bindings.
Jeff
On Tue, Sep 28, 2010 at 8:09 AM, Michael Franz Krenn krenn_mi@sbox.tugraz.at wrote:
Hey!
May you have an example for a ALPS program using MPI? I did my thesis in ALPS-1.3.4, because I'm just implementing a tempering in my program – but if everything works fine, I'll change everything to ALPS 2.0.
I reinstalled MPI and use the MPI C libraries, but have still the same problems.
Lg michael
Zitat von Matthias Troyer troyer@phys.ethz.ch:
On 21 Sep 2010, at 11:54, Michael Franz Krenn wrote:
Hey!
I'm using alps-1.3.4 and compiled it (X86_64, mpic++.openmpi) successfully with openmpi-1.4.2 and want to use the mpi implementation for my SSE program. Compiling my program (mpi_phonon) I'll get following error:
make mpi_phonon mpic++.openmpi -DNDEBUG -I/proj/manybody/pippan/ALPS/sources/boost_1_38_0 -I/proj/manybody/ALPS/lenny/include -I/proj/manybody/libs/openmpi-1.4.2/64bit/lib -o mpi_phonon mpi_phonon.o SSE.Directed.o SSE.Measurements.o SSE.o SSE.Update.o SSE.Initialization.o SSE.Greens.o SSE.PhononInterface.o PhononsInXL2D.o -L/proj/manybody/ALPS/64bit/mpi/lib -pg -lalps -lcomm-mpi -llapack -lf77blas -latlas -lpthread -lm -lmpi_cxx -lmpi -lopen-rte -lopen-pal -lfftw3 -llpk mpi_phonon.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x28): undefined reference to `MPI::Win::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntercommE[vtable for MPI::Intercomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9GraphcommE[vtable for MPI::Graphcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI8CartcommE[vtable for MPI::Cartcomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI9IntracommE[vtable for MPI::Intracomm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' mpi_phonon.o:(.rodata._ZTVN3MPI4CommE[vtable for MPI::Comm]+0x1a8): undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)' collect2: ld returned 1 exit status make: *** [mpi_phonon] Fehler 1
Is there anyone who knows about this? Am I using the wrong mpi version? (Needs ALPS mpich?) thanks for comments!
Hi,
This looks like a problem with your MPI installation. Have you tested it with other C++ codes? We recommend that you do not use the mpic++.openmpi wrapper but explicitly specify the list of libraries, and only link the MPI C but not the C++ libraries. That will avoid the above linker problem.
Matthias
PS: why don't you use ALPS 2.0?
-- Jeff Hammond Argonne Leadership Computing Facility jhammond@alcf.anl.gov / (630) 252-5381 http://www.linkedin.com/in/jeffhammond
comp-phys-alps-users@lists.phys.ethz.ch