-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
56 lines (43 loc) · 1.05 KB
/
Makefile
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
all: clean bemfmm_test_mpi
.SUFFIXES: .o .c .C .h .cxx .cpp
.PHONY: clean all
include make.inc
# Core
LIBS = ${METIS_LIBS} ${TBB_LIBS} ${LAPACK_LIBS} ${USERLIBS} ${BLAS_LIBS} ${BLAS_LAPACK_EXTRA}
INCS = -Iinclude/fmm -Iinclude/ ${METIS_INCS} ${TBB_INCS} ${USERINCS}
FLGS = ${INCS} ${FMM_FLGS}
ifeq ($(MODE), DEV)
FLGS += -g
else
FLGS += -O3 -mavx
endif
ifeq ($(LINKING_TYPE), DYNAMIC)
LIBS += -dynamic
endif
ifeq ($(ENV), GNU)
FLGS += -fopenmp
else ifeq ($(ENV), INTEL)
FLGS += -qopenmp
endif
FLGS += $(USERCXXFLAGS)
SRC = bemfmm_test_mpi.cxx
OBJ = $(SRC:.cxx=.o)
.cxx.o:
$(CXX) $(FLGS) -c $<
bemfmm_test_mpi: $(OBJ)
$(CXX) $(FLGS) $(OBJ) $(LIBS) -o $@
$(RM) -f *.o
test_parallel:
${EXEC} -n 4 ./bemfmm_test_mpi -f geom/sphere/geo_mesh_3156.inp -wd -t 10 -c 500 -q 683.13 -p h -r 30 -m 1000
test_serial:
${EXEC} -n 1 ./bemfmm_test_mpi -f geom/sphere/geo_mesh_156.inp -wd -t 10 -c 500 -q 683.13 -p h -r 30 -m 1000
clean:
rm -f *.o
rm -f *.out
rm -f *.time
rm -f *.mod
rm -f *.o.optdbg
rm -f *.bak
rm -f *~
rm -f *.dat
rm -f bemfmm_test_mpi