Problem 2157

Summary: Geant4.10.5 MPI version fails to build High Performance Computing system and PC
Product: Examples/Extended Reporter: Sanchit Sharma <sanchitsharma>
Component: paralle/MPIAssignee: Koichi Murakami <Koichi.Murakami>
Status: CLOSED WONTFIX    
Severity: major    
Priority: P4    
Version: 10.5   
Hardware: PC   
OS: Linux   
Attachments: Make appempt
make attempt 2
make attempt 3

Description Sanchit Sharma 2019-04-09 18:56:31 CEST
Created attachment 559 [details]
Make appempt

Hello Respected Geant4 Experts,

Installing Geant4 MPI libraries is failing:

As per the instructions provided, When I do:

cmake -DGeant4_DIR=/homes/sanchitsharma/Geant4/Install_M/lib64/Geant4-10.5.0 -DCMAKE_INSTALL_PREFIX=/homes/sanchitsharma/Geant4/Install_M/MPI /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source

This runs perfectly However doing a "make" gives following error:

In file included from /homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/src/G4MPIbatch.cc:33:0:
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh:117:9: error: ‘MPI’ does not name a type; did you mean ‘M_PI’?
   const MPI::Intracomm* GetComm() const { return &COMM_G4COMMAND_; }
         ^~~
         M_PI
/homes/sanchitsharma/Geant4/Install_M/share/Geant4-10.5.0/examples/extended/parallel/MPI/source/include/G4MPImanager.hh:150:3: error: ‘MPI’ does not name a type; did you mean ‘M_PI’?
   MPI::Intracomm COMM_G4COMMAND_;
   ^~~
   M_PI
make[2]: *** [CMakeFiles/G4mpi.dir/src/G4MPIbatch.cc.o] Error 1
make[1]: *** [CMakeFiles/G4mpi.dir/all] Error 2
make: *** [all] Error 2

I have attached my screenshot along with this. I have also tried running this with -DCMAKE_CXX_COMPILER=mpicxx option that does not work either.

I would be extremely grateful of any solution in this regard.

Thanks!
Comment 1 Sanchit Sharma 2019-04-09 18:58:18 CEST
Created attachment 560 [details]
make attempt 2
Comment 2 Sanchit Sharma 2019-04-09 20:21:47 CEST
Created attachment 561 [details]
make attempt 3
Comment 3 Sanchit Sharma 2019-04-09 20:22:32 CEST
I have tried this with various versions of MPI.