blob: cf4bd74fad64d071db0efce72b57b142ebc689cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#! /bin/sh
# /*@@
# @file setup.sh
# @date Wed Jul 21 11:18:40 1999
# @author Tom Goodale
# @desc
# Setup MPI
# @enddesc
# @version $Header$
# @@*/
if test -n "$MPI" -a "$MPI" != 'none' ; then
echo "Configuring with MPI"
# Work out which variation of MPI is installed
if test -r $srcdir/extras/MPI/$MPI ; then
. $srcdir/extras/MPI/$MPI
else
echo "MPI selected, but no known MPI method - what is \"$MPI\" ?"
exit 2
fi
# Write the data out to the header and make files.
if test -z "$MPI_VERSION" ; then
MPI_VERSION="$MPI"
fi
CCTK_WriteLine cctk_Extradefs.h "#define CCTK_MPI_$MPI_VERSION 1"
CCTK_WriteLine cctk_Extradefs.h "#define CCTK_MPI CCTK_MPI_$MPI_VERSION"
CCTK_WriteLine make.extra.defn "MPI_LIBS = $MPI_LIBS"
CCTK_WriteLine make.extra.defn "MPI_LIB_DIRS = $MPI_LIB_DIRS"
CCTK_WriteLine make.extra.defn "MPI_INC_DIRS = $MPI_INC_DIRS"
CCTK_WriteLine make.extra.defn ""
CCTK_WriteLine make.extra.defn ""
CCTK_WriteLine make.extra.defn 'LIBS += $(MPI_LIBS)'
CCTK_WriteLine make.extra.defn 'LIBDIRS += $(MPI_LIB_DIRS)'
CCTK_WriteLine make.extra.defn 'SYS_INC_DIRS += $(MPI_INC_DIRS)'
fi
|