Message: build G4Mpi Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None build G4Mpi 

Forum: Documentation and Examples
Date: 25 Jul, 2015
From: Adel Pirnia <Adel Pirnia>

I did following steps for openMPI version 1.8.7:

shell$ tar xf openmpi-X.Y.Z.tar.gz shell$ cd openmpi-X.Y.Z shell$ mkdir build shell$ cd build shell$ ../configure ...your options... [...lots of output...] shell$ make all install

then:

    > mkdir build (beside the openMPI folder itself)
    > cd build
    > cmake -DGeant4_DIR=<your Geant4 install path>/lib/Geant4-10.1.1 -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_INSTALL_PREFIX=<where-G4mpi-lib-will-be-installed>(I put this:<your Geant4 install path>/lib) <g4source>/examples/extended/parallel/MPI/source
    > make

but got these messages:

adel@adel:~/G4/workdir/openMPI/build$ cmake -DGeant4_DIR=/home/adel/G4/10.1.1/install/lib/Geant4-10.1.1/ -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_INSTALL_PREFIX=/home/adel/G4/10.1.1/install/lib/ /home/adel/G4/10.1.1/geant4.10.01.p01/examples/extended/parallel/MPI/source/
-- The C compiler identification is GNU 4.9.1
-- The CXX compiler identification is unknown
-- 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: mpicxx
CMake Error: your CXX compiler: "mpicxx" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working CXX compiler: mpicxx -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:54 (message):
  The C++ compiler "mpicxx" is not able to compile a simple test program.

  It fails with the following output:

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)

CMake Error: your CXX compiler: "mpicxx" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. -- Configuring incomplete, errors occurred! See also "/home/adel/G4/workdir/openMPI/build/CMakeFiles/CMakeOutput.log". See also "/home/adel/G4/workdir/openMPI/build/CMakeFiles/CMakeError.log".

Please help me...

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

1 None: Re: build G4Mpi   (Ivana Hrivnacova - 12 Aug, 2015)
 Add Message Add Message
to: "build G4Mpi"

 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 ]