Message: Error during building MPI libraries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Error during building MPI libraries 

Forum: Multithreading
Date: Feb 13, 13:19
From: Sanchit Sharma <Sanchit Sharma>

Hello Respected Geant4 Experts,

I am having trouble in installing Geant4 MPI libraries:

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!
   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2019/02/13/13.16-32834-error.PNG

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: Error during building MPI libraries   (Sanchit Sharma - Feb 13, 13:26)
2 Question: Re: Error during building MPI libraries   (Jincai - Apr 01, 18:20)
1 Idea: Re: Error during building MPI libraries   (Sanchit Sharma - Apr 08, 05:51)
(_ Idea: Re: Error during building MPI libraries   (Nicolò Borghi - Apr 14, 17:12)
(_ Question: Re: Error during building MPI libraries   (Sanchit Sharma - Apr 16, 13:22)
(_ Idea: Re: Error during building MPI libraries   (Nicolò Borghi - Apr 16, 14:42)
 Add Message Add Message
to: "Error during building MPI libraries"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews