|
[Sponsors] |
[OpenFOAM.org] Problems Installing PV-4.1 with MPI on OF 2.3 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 13, 2014, 15:15 |
Problems Installing PV-4.1 with MPI on OF 2.3
|
#1 |
Member
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 12 |
Hi everyone, i got a problem in compiling ParaView 4.1 with MPI-support.
Up to here, everything works fine (OF, mpi, cmake, qt, CGAL, scotch, etc...) only paraview with enabled mpi crashes on configuring. makeparaview.log is attached. The strange part is following: Code:
. . . -- Found MPI_C: /scratch/fpfender/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc48/openmpi-1.6.5/lib/libmpi.so -- Found MPI_CXX: /scratch/fpfender/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc48/openmpi-1.6.5/lib/libmpi.s o -- Found MPI_Fortran: /scratch/fpfender/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc48/openmpi-1.6.5/lib64/li bmpi_f90.so;/scratch/fpfender/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc48/openmpi-1.6.5/lib64/libmpi_f77.s o;/scratch/fpfender/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc48/openmpi-1.6.5/lib64/libmpi.so;/usr/lib/x86 _64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-lin ux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-g nu/libdl.so -- Could NOT find MPI_C (missing: MPI_C_LIBRARIES) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES) . . . thanks for reading Ferdi |
|
March 16, 2014, 06:57 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Ferdi,
It looks like that there is something wrong with your OpenFOAM environment, since the message is indicating that the file: Code:
/scratch/fpfender/OpenFOAM/ThirdParty-2.3.x/platforms/linux64Gcc48/openmpi-1.6.5/lib/libmpi.so My deduction is that your OpenFOAM installation was built with the system's Open-MPI and not with the version provided with OpenFOAM. Either a build error of Open-MPI 1.6.5 that comes with OpenFOAM; or you built OpenFOAM with the system compiler and then on another terminal you did not use the same environment settings, leading the makeParaView4 script to believe that you were using OpenFOAM's own Open-MPI. To help you solve this, I need to know:
Bruno edit: If at a later time you get the following error: Quote:
__________________
Last edited by wyldckat; March 16, 2014 at 14:56. Reason: see "edit:" |
||
March 20, 2014, 04:15 |
|
#3 |
Member
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14 |
I have the same issue.
I call makeParaview with the following options: Code:
./makeParaView4 -mpi -python -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so Code:
-- Found MPI_C: /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64/libmpi.so -- Found MPI_CXX: /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64/libmpi.so -- Could NOT find MPI_C (missing: MPI_C_LIBRARIES) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES) -- Found MPI_C: /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64/libmpi.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so -- Found MPI_CXX: /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64/libmpi.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libnsl.so;/usr/lib/x86_64-linux-gnu/libutil.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so Code:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MPI_EXTRA_LIBRARY (ADVANCED) linked by target "mpi4py.MPE" in directory /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py linked by target "mpi4py.MPI" in directory /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py linked by target "pmpi-mpe" in directory /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py linked by target "pmpi-vt" in directory /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py linked by target "pmpi-vt-hyb" in directory /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py linked by target "pmpi-vt-mpi" in directory /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py -- Configuring incomplete, errors occurred! If I only try to build with mpi support I get the same error Ferdinand has: Code:
./makeParaView4 -mpi Code:
-- Found MPI_C: /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64/libmpi.so -- Found MPI_CXX: /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64/libmpi.so -- Could NOT find MPI_C (missing: MPI_C_LIBRARIES) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIBRARIES) Code:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: MPI_EXTRA_LIBRARY (ADVANCED) linked by target "vtkPVClientServerCoreCore" in directory /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/ParaView-4.1.0/ParaViewCore/ClientServerCore/Core -- Configuring incomplete, errors occurred! This happens on Ubuntu 13.10 and the installation instructions used are the official ones for installing openfoam from the git repository. |
|
March 22, 2014, 06:45 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Daniel,
Mmm... knowing which installation instructions you've followed would come in handy to figure out the issue. From what I can see, first check what this command gives you: Code:
ls -l /home/openfoam/OpenFOAM-dev/ThirdParty-2.3.x/platforms/linux64Gcc/openmpi-1.6.5/lib64/libmpi.so If this is the case, then problem is that this will not build the C++ library needed for ParaView's MPI capabilities. To build those libraries, follow these steps:
Best regards, Bruno PS: I've reported this issue here: http://www.openfoam.org/mantisbt/view.php?id=1233
__________________
Last edited by wyldckat; March 22, 2014 at 06:51. Reason: see "PS:" |
|
March 24, 2014, 06:32 |
|
#5 | |||
Member
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14 |
Hi Bruno thanks for your answer!
Quote:
Quote:
Quote:
|
||||
March 26, 2014, 16:31 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quote:
You're welcome! Although I don't know if they will change it, since OpenFOAM itself doesn't need it...
__________________
|
||
March 27, 2014, 01:27 |
|
#7 |
Member
Daniel Pielmeier
Join Date: Apr 2012
Posts: 99
Rep Power: 14 |
||
April 7, 2014, 05:44 |
|
#8 |
Member
Ferdinand Pfender
Join Date: May 2013
Location: Berlin, Germany
Posts: 40
Rep Power: 12 |
sorry for my late response...
i got it to work a few days ago. i solved the problem by setting up a link for lib to the existing directory lib64 in the directory of openmpi. thanks a lot! |
|
December 1, 2014, 06:31 |
|
#9 |
New Member
Join Date: Jul 2009
Posts: 7
Rep Power: 16 |
Thanks to previous posters for pointing me in the right direction.
The issue seems to be that the ThirdParty-2.3.x/etc/tools/ParaView4Functions file refers to $MPI_ARCH_PATH/lib/libmpi_cxx.so instead of the lib64 folder. Changing these references (below) from lib to lib64 solved it for me. Code:
addMpiSupport() { [ "${withMPI:=false}" = true ] || return OBJ_ADD="$OBJ_ADD-mpi" addCMakeVariable "PARAVIEW_USE_MPI=ON VTK_USE_MPI=ON" addCMakeVariable "MPI_INCLUDE_PATH=$MPI_ARCH_PATH/include" addCMakeVariable "MPI_LIBRARY=$MPI_ARCH_PATH/lib64/libmpi.so" if [ -e $MPI_ARCH_PATH/lib64/libmpi_cxx.so ] then addCMakeVariable "MPI_EXTRA_LIBRARY=$MPI_ARCH_PATH/lib64/libmpi_cxx.so" fi addCMakeVariable "VTK_MPIRUN_EXE=$MPI_ARCH_PATH/bin/mpirun" addCMakeVariable "VTK_MPI_MAX_NUMPROCS=$MPI_MAX_PROCS" } |
|
December 9, 2018, 07:12 |
|
#10 |
New Member
Jason
Join Date: Dec 2014
Location: Shanghai, China
Posts: 10
Rep Power: 11 |
As a reminder, the same error messages may be caused by the wrong lib filename.
To me, I use a mpich lib and the MPI_CXX file is named libmpicxx.so not the string in the etc/tools/ParaView4Functions. So, just changing "libmpi_cxx.so" to "libmpicxx.so" will nicely address this issue. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 08:06 |
[OpenFOAM.org] Problems with installing openfoam 5.0 on HPC Cluster | sjlouie91 | OpenFOAM Installation | 4 | January 20, 2019 15:35 |
[waves2Foam] A few notes about problems and solutions when installing with OpenFOAM v1712 | oceanFoam | OpenFOAM Community Contributions | 0 | June 22, 2018 08:52 |
[OpenFOAM.org] Problems in Installing OpenFOAM-4.0 on CentOS SL RHEL | louistse | OpenFOAM Installation | 9 | October 7, 2016 03:37 |
Problems installing CFX on Sun Unix Platform | Haley | CFX | 2 | November 9, 2001 09:52 |