Rev | Line | |
---|
[807] | 1 | $Id: README,v 1.1 2007/11/16 13:32:56 kmura Exp $ |
---|
| 2 | ========================================================================== |
---|
| 3 | Geant4 MPI Interface |
---|
| 4 | |
---|
| 5 | Author: |
---|
| 6 | Koichi Murakami (KEK) / Koichi.Murakami@kek.jp |
---|
| 7 | ========================================================================== |
---|
| 8 | |
---|
| 9 | How to build |
---|
| 10 | ============ |
---|
| 11 | |
---|
| 12 | 1. 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 | |
---|
| 18 | Sample makefiles for (LAM, MPICH2, OpenMPI) are also presented. |
---|
| 19 | An example of "G4MPI.gmk": |
---|
| 20 | |
---|
| 21 | # =========================================================== |
---|
| 22 | # Makefile for building G4MPI (LAM) |
---|
| 23 | # =========================================================== |
---|
| 24 | |
---|
| 25 | ifndef G4MPIROOT |
---|
| 26 | G4MPIROOT = /opt/lam |
---|
| 27 | endif |
---|
| 28 | |
---|
| 29 | # additional flags |
---|
| 30 | CXX := mpic++ |
---|
| 31 | CPPFLAGS += -I$(G4MPIROOT)/include |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | 2. Build the library |
---|
| 35 | |
---|
| 36 | # make |
---|
| 37 | # make includes |
---|
| 38 | |
---|
| 39 | The library (libG4UImpi) will be created in $G4LIB, |
---|
| 40 | and header files will be installed into $G4INCLUDE. |
---|
| 41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.