source: trunk/examples/extended/parallel/MPI/mpi_interface/README

Last change on this file was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 1.1 KB
RevLine 
[1337]1$Id: README,v 1.2 2010/05/18 06:00:18 kmura Exp $
[807]2==========================================================================
3Geant4 MPI Interface
4
5  Author:
6  Koichi Murakami (KEK) / Koichi.Murakami@kek.jp
7==========================================================================
8
9How to build
10============
11
121. Check "G4MPI.gmk" for yor MPI configuration:
13
14* Set "G4MPIROOT", which is the root path to your MPI library.
15* Redifine CXX as (wrapped) MPI C++ compiler.
16* Specify additional include paths and compiler flags to "CPPFLAGS".
17
[1337]18Sample makefiles for (OpnMPI, LAM, MPICH2) are also presented.
[807]19An example of "G4MPI.gmk":
20
[1337]21# ===========================================================
22#  Makefile for building G4MPI (OpenMPI)
23# ===========================================================
[807]24
[1337]25ifndef G4MPIROOT
26  G4MPIROOT = /opt/ompi
27endif
[807]28
[1337]29# additional flags
30CXX := mpic++
31CXXFLAGS := $(subst -Wall, , $(CXXFLAGS))
32CPPFLAGS += -I$(G4MPIROOT)/include -I$(G4MPIROOT)/include/openmpi
[807]33
34
352. Build the library
36
37# make
38# make includes
39
40The library (libG4UImpi) will be created in $G4LIB,
41and header files will be installed into $G4INCLUDE.
42
Note: See TracBrowser for help on using the repository browser.