Problem 2157 - Geant4.10.5 MPI version fails to build High Performance Computing system and PC
Summary: Geant4.10.5 MPI version fails to build High Performance Computing system and PC
Status: CLOSED WONTFIX
Alias: None
Product: Examples/Extended
Classification: Unclassified
Component: paralle/MPI (show other problems)
Version: 10.5
Hardware: PC Linux
: P4 major
Assignee: Koichi Murakami
URL:
Depends on:
Blocks:
 
Reported: 2019-04-09 18:56 CEST by Sanchit Sharma
Modified: 2020-03-02 15:10 CET (History)
0 users

See Also:


Attachments
Make appempt (46.27 KB, image/png)
2019-04-09 18:56 CEST, Sanchit Sharma
Details
make attempt 2 (176.00 KB, image/png)
2019-04-09 18:58 CEST, Sanchit Sharma
Details
make attempt 3 (276.81 KB, image/png)
2019-04-09 20:21 CEST, Sanchit Sharma
Details

Note You need to log in before you can comment on or make changes to this problem.
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.