Problem 2028 - can not successfully finish "make" when i try to build G4MPI
Summary: can not successfully finish "make" when i try to build G4MPI
Status: RESOLVED WONTFIX
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: paralle/MPI (show other problems)
Version: 10.4
Hardware: PC Linux
: P4 normal
Assignee: Koichi Murakami
URL:
Depends on:
Blocks:
 
Reported: 2017-12-21 15:32 CET by Riichiro Nakamura
Modified: 2019-02-06 08:48 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Riichiro Nakamura 2017-12-21 15:32:31 CET
Hello. Now I am trying to do mpi calculation, but I can not successfully finish "make" when i try to build G4MPI. Cmake was seemed to finish successfully. The line is below after pressing Cmake.
-------------------------------------------
[rnakamura@icarus build]$ cmake -DGeant4_DIR=/home/rnakamura/prefixforgeant4/usr/local/geant4/lib[64]/Geant4-10.4.0 -DCMAKE_CXX_COMPILER:FILEPATH="/share/apps/gcc/6.3.0/bin/g++" -DCMAKE_C_COMPILER:FILEPATH="/share/apps/gcc/6.3.0/bin/gcc"  -DCMAKE_INSTALL_PREFIX=/home/rnakamura/prefixforgeant4/usr/local/geantmpi /home/rnakamura/geant4.10.04/examples/extended/parallel/MPI/source/
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: /share/apps/gcc/6.3.0/bin/gcc
-- Check for working C compiler: /share/apps/gcc/6.3.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /share/apps/gcc/6.3.0/bin/g++
-- Check for working CXX compiler: /share/apps/gcc/6.3.0/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found MPI_C: /share/apps/gcc/6.3.0/lib/libmpi.so (found version "3.1") 
-- Found MPI_CXX: /share/apps/gcc/6.3.0/lib/libmpi.so (found version "3.1") 
-- Found MPI: TRUE (found version "3.1")  
-- G4 Examples: libG4mpi uses includes from: /share/apps/gcc/6.3.0/include
-- G4 Examples: libG4mpi uses libraries: /share/apps/gcc/6.3.0/lib/libmpi.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rnakamura/build
-------------------------------------------

and after Cmake I pressed "make", but the error was reported. The error is below.

-------------------------------------------
[rnakamura@icarus build]$ make
Scanning dependencies of target G4mpi
[  7%] Building CXX object CMakeFiles/G4mpi.dir/src/G4MPIbatch.cc.o
In file included from /home/rnakamura/geant4.10.04/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc:33:0:
/home/rnakamura/geant4.10.04/examples/extended/parallel/MPI/source/include/G4MPImanager.hh:137:3: Error: ‘MPI’ does not name a type
   MPI::Intracomm COMM_G4COMMAND_;
   ^~~
make[2]: *** [CMakeFiles/G4mpi.dir/src/G4MPIbatch.cc.o] Error 1
make[1]: *** [CMakeFiles/G4mpi.dir/all] Error  2
make: *** [all] Error 2
--------------------------------------------
 
The installed Open MPI in PC is version 2.0.2. I am completely stacked here, so please give me kind advices.
Comment 1 Koichi Murakami 2018-08-31 15:59:12 CEST
Which version of MPI client is used?
MPI-3 dropped C++ support, so OpenMPI v2.x is not supported.