Last change
on this file since 1337 was
1337,
checked in by garnier, 14 years ago
|
tag geant4.9.4 beta 1 + modifs locales
|
File size:
1.1 KB
|
Line | |
---|
1 | $Id: README,v 1.2 2010/05/18 06:00:18 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 (OpnMPI, LAM, MPICH2) are also presented. |
---|
19 | An example of "G4MPI.gmk": |
---|
20 | |
---|
21 | # =========================================================== |
---|
22 | # Makefile for building G4MPI (OpenMPI) |
---|
23 | # =========================================================== |
---|
24 | |
---|
25 | ifndef G4MPIROOT |
---|
26 | G4MPIROOT = /opt/ompi |
---|
27 | endif |
---|
28 | |
---|
29 | # additional flags |
---|
30 | CXX := mpic++ |
---|
31 | CXXFLAGS := $(subst -Wall, , $(CXXFLAGS)) |
---|
32 | CPPFLAGS += -I$(G4MPIROOT)/include -I$(G4MPIROOT)/include/openmpi |
---|
33 | |
---|
34 | |
---|
35 | 2. Build the library |
---|
36 | |
---|
37 | # make |
---|
38 | # make includes |
---|
39 | |
---|
40 | The library (libG4UImpi) will be created in $G4LIB, |
---|
41 | and header files will be installed into $G4INCLUDE. |
---|
42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.