forked from ALaDyn/piccante
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.fermi.xl
66 lines (44 loc) · 2.17 KB
/
makefile.fermi.xl
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
COMPILER = mpixlcxx
EXE = piccante
OBJ = main-1.o grid.o structures.o current.o em_field.o particle_species.o output_manager.o utilities.o jsoncpp.o jsonparser.o
#OPT = -qipa=level=2 -qipa=partition=large -O5 -qstrict -qinline -qhot -qlibmpi -qarch=qp -qtune=qp -qmaxmem=-1 -DUSE_BOOST
OPT = -O5 -qstrict -qinline -qhot -qlibmpi -qarch=qp -qtune=qp -qmaxmem=-1 -DUSE_BOOST
GSL_LIB = /cineca/prod/libraries/gsl/1.15/bgq-xl--1.0/lib/
GSL_INC = /cineca/prod/libraries/gsl/1.15/bgq-xl--1.0/include/
BOOST_LIB = /cineca/prod/libraries/boost/1.51.0/bgq-xl--1.0/lib/
BOOST_INC = /cineca/prod/libraries/boost/1.51.0/bgq-xl--1.0/include/
LIB = -lgsl -lgslcblas -lboost_system -lboost_filesystem
all : $(EXE)
scal : COMPILER = scalasca -instrument mpixlcxx
scal : EXE = piccante.scalasca
scal : $(EXE)
deb : OPT = -g -qfullpath -qcheck -qflttrap -qinitauto=FF -qkeepparm -DUSE_BOOST
deb : EXE = piccante.debug
deb : $(EXE)
deb2 : OPT = -qipa=partition=large -qarch=qp -qtune=qp -qmaxmem=-1 -g -qfullpath -qcheck -qflttrap -qinitauto=FF -DUSE_BOOST
deb2 : EXE = piccante.debug
deb2 : $(EXE)
$(EXE) : $(OBJ)
$(COMPILER) -o $(EXE) $(OPT) $(OBJ) -L$(GSL_LIB) -L$(BOOST_LIB) -I$(GSL_INC) -I$(BOOST_INC) $(LIB)
main-1.o: main-1.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c main-1.cpp
grid.o : grid.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c grid.cpp
structures.o : structures.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c structures.cpp
current.o : current.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c current.cpp
em_field.o: em_field.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c em_field.cpp
particle_species.o: particle_species.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c particle_species.cpp
output_manager.o: output_manager.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c output_manager.cpp
utilities.o: utilities.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c utilities.cpp
jsoncpp.o: jsoncpp.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c jsoncpp.cpp
jsonparser.o: jsonparser.cpp
$(COMPILER) -I$(GSL_INC) -I$(BOOST_INC) $(OPT) -c jsonparser.cpp
clean :
rm -f $(OBJ) *~