Makefile.am 1.79 KB
Newer Older
1

Pietro Incardona's avatar
Pietro Incardona committed
2
LINKLIBS = $(METIS_LIB) $(PARMETIS_LIB)  $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS) $(BOOST_IOSTREAMS_LIB) $(CUDA_LIBS)
3

incardon's avatar
incardon committed
4
noinst_PROGRAMS = cart_dec metis_dec dom_box
Pietro Incardona's avatar
Pietro Incardona committed
5
cart_dec_SOURCES = CartDecomposition_gen_vtk.cpp ../src/lib/pdata.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
Pietro Incardona's avatar
Pietro Incardona committed
6
cart_dec_CXXFLAGS = $(PARMETIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(METIS_INCLUDE) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
7
cart_dec_CFLAGS = $(CUDA_CFLAGS)
Pietro Incardona's avatar
Pietro Incardona committed
8
cart_dec_LDADD = $(LINKLIBS) -lparmetis -lmetis
9

Pietro Incardona's avatar
Pietro Incardona committed
10
metis_dec_SOURCES = Metis_gen_vtk.cpp ../src/lib/pdata.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
11
metis_dec_CXXFLAGS = $(CUDA_CFLAGS) $(INCLUDES_PATH) $(METIS_INCLUDE) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
12
13
14
metis_dec_CFLAGS = $(CUDA_CFLAGS)
metis_dec_LDADD = $(LINKLIBS) -lmetis

Pietro Incardona's avatar
Pietro Incardona committed
15
dom_box_SOURCES = domain_gen_vtk.cpp ../src/lib/pdata.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
16
dom_box_CXXFLAGS = $(CUDA_CFLAGS) $(INCLUDES_PATH) $(METIS_INCLUDE) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
17
18
19
20
21
dom_box_CFLAGS = $(CUDA_CFLAGS)
dom_box_LDADD = $(LINKLIBS)

.cu.o :
	$(NVCC) $(NVCCFLAGS) -o $@ -c $<
Pietro Incardona's avatar
Pietro Incardona committed
22
23
24
25
26
27
28
29
30
31
32
33


#### Rule to make images

images : cart_dec metis_dec dom_box
	rm -rf CartDecomposition
	rm -rf Metis
	mkdir CartDecomposition
	mkdir Metis
	mpirun -np 4 ./cart_dec
	./dom_box
	./metis_dec
Pietro Incardona's avatar
Pietro Incardona committed
34
35
	mkdir -p generated
	mkdir -p static
Pietro Incardona's avatar
Pietro Incardona committed
36
37
	pvbatch Domain_decomposition.py