Message: How can i compile exMPI01 ?? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question How can i compile exMPI01 ?? 

Forum: Installation and Configuration
Date: 16 May, 2015
From: HyeonDeok Seo <HyeonDeok Seo>

Hello~^^

I want to exectue Geatn4 with mip library. I installed mpich before.

    1. So, I compiled G4MPI source as below:
=======================================================
# cmake -DGeant4_DIR=~/Geant4/geant4.10.01/lib/Geant4-10.1.0 -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_INSTALL_PREFIX=~/Geant4/G4MPI ../source
=======================================================

    2. Then, i get below message. I think i compile it right:
=======================================================
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/mpicxx
-- Check for working CXX compiler: /usr/bin/mpicxx -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/libmpich.so;/usr/lib/x86_64-linux-gnu/libopa.so;/usr/lib/x86_64-linux-gnu/libmpl.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/libcr.so;/usr/lib/x86_64-linux-gnu/libpthread.so  
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/libmpichcxx.so;/usr/lib/x86_64-linux-gnu/libmpich.so;/usr/lib/x86_64-linux-gnu/libopa.so;/usr/lib/x86_64-linux-gnu/libmpl.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/libcr.so;/usr/lib/x86_64-linux-gnu/libpthread.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/seohyeondeok/Geant4/geant4.10.01/share/Geant4-10.1.0/examples/extended/parallel/MPI/build
=======================================================

    3. Now I wanted to compile a example, exMPI01, So, I used below command:
=======================================================

# cmake -DGeant4_DIR=~/Geant4/geant4.10.01 -DG4mpi_DIR=~/Geant4/G4MPI/lib/G4mpi ../exMPI01 =======================================================

    4. And i get below message:
=======================================================

/home/seohyeondeok/Geant4/G4MPI/include G4mpi -- Configuring done -- Generating done -- Build files have been written to: /home/seohyeondeok/Desktop/exMPI01_build =======================================================

    5. Then i used just "make" command:
=======================================================
# make
=======================================================

    6. I get below error message:
=======================================================
/home/seohyeondeok/Geant4/G4MPI/include/G4MPImanager.hh:31:17: fatal error: mpi.h: No such file or directory
 #include "mpi.h"
                 ^
compilation terminated.
make[2]: *** [CMakeFiles/exMPI01.dir/exMPI01.cc.o] Error 1
make[1]: *** [CMakeFiles/exMPI01.dir/all] Error 2
make: *** [all] Error 2
=======================================================

    What's wrong with my procedures???

    I can not even guess the problem

 Add Message Add Message
to: "How can i compile exMPI01 ??"

 Subscribe Subscribe

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


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]