43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
$Id: README,v 1.2 2010/05/18 06:00:18 kmura Exp $
|
|
==========================================================================
|
|
Geant4 MPI Interface
|
|
|
|
Author:
|
|
Koichi Murakami (KEK) / Koichi.Murakami@kek.jp
|
|
==========================================================================
|
|
|
|
How to build
|
|
============
|
|
|
|
1. Check "G4MPI.gmk" for yor MPI configuration:
|
|
|
|
* Set "G4MPIROOT", which is the root path to your MPI library.
|
|
* Redifine CXX as (wrapped) MPI C++ compiler.
|
|
* Specify additional include paths and compiler flags to "CPPFLAGS".
|
|
|
|
Sample makefiles for (OpnMPI, LAM, MPICH2) are also presented.
|
|
An example of "G4MPI.gmk":
|
|
|
|
# ===========================================================
|
|
# Makefile for building G4MPI (OpenMPI)
|
|
# ===========================================================
|
|
|
|
ifndef G4MPIROOT
|
|
G4MPIROOT = /opt/ompi
|
|
endif
|
|
|
|
# additional flags
|
|
CXX := mpic++
|
|
CXXFLAGS := $(subst -Wall, , $(CXXFLAGS))
|
|
CPPFLAGS += -I$(G4MPIROOT)/include -I$(G4MPIROOT)/include/openmpi
|
|
|
|
|
|
2. Build the library
|
|
|
|
# make
|
|
# make includes
|
|
|
|
The library (libG4UImpi) will be created in $G4LIB,
|
|
and header files will be installed into $G4INCLUDE.
|
|
|