Makefile.am 2.83 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

4
noinst_PROGRAMS = cart_dec metis_dec dom_box vector_dist
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 = $(METIS_INCLUDE) $(PARMETIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(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
Pietro Incardona's avatar
Pietro Incardona committed
11
metis_dec_CXXFLAGS = $(METIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(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
Pietro Incardona's avatar
Pietro Incardona committed
16
dom_box_CXXFLAGS = $(METIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
17
18
19
dom_box_CFLAGS = $(CUDA_CFLAGS)
dom_box_LDADD = $(LINKLIBS)

20
vector_dist_SOURCES = vector.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_vcluster/src/VCluster.cpp ../openfpm_devices/src/memory/PtrMemory.cpp
Pietro Incardona's avatar
Pietro Incardona committed
21
vector_dist_CXXFLAGS = $(PARMETIS_INCLUDE) $(METIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(HDF5_CPPFLAGS) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
22
23
24
vector_dist_CFLAGS = $(CUDA_CFLAGS)
vector_dist_LDADD = $(LINKLIBS) -lparmetis -lmetis

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


#### Rule to make images

images : cart_dec metis_dec dom_box
	rm -rf CartDecomposition
	rm -rf Metis
34
	rm -rf Vector
Pietro Incardona's avatar
Pietro Incardona committed
35
36
	mkdir CartDecomposition
	mkdir Metis
37
	mkdir Vector
Pietro Incardona's avatar
Pietro Incardona committed
38
	mpirun -np 4 ./cart_dec
39
	mpirun -np 3 ./vector_dist
Pietro Incardona's avatar
Pietro Incardona committed
40
41
	./dom_box
	./metis_dec
Pietro Incardona's avatar
Pietro Incardona committed
42
43
	mkdir -p generated
	mkdir -p static
Pietro Incardona's avatar
Pietro Incardona committed
44
	pvbatch Domain_decomposition.py
Pietro Incardona's avatar
Pietro Incardona committed
45
	pvbatch vector_dist.py
Pietro Incardona's avatar
Pietro Incardona committed
46
47
	pvbatch mooving_particles.py
	pvbatch mooving_particles_prc.py
Pietro Incardona's avatar
Pietro Incardona committed
48
	pvbatch vector_scal_vect.py
Pietro Incardona's avatar
Pietro Incardona committed
49
50
	pvbatch vector_particles.py
	pvbatch particles_maps.py
51
	dot -Tsvg openfpm.dot -o generated/openfpm.svg
52
53
	avconv -i generated/particles_mooving.ogv -f mp4 generated/particles_mooving.mp4
	avconv -i generated/particles_mooving_prc.ogv -f mp4 generated/particles_mooving_prc.mp4
Pietro Incardona's avatar
Pietro Incardona committed
54
55
	avconv -i generated/particles_mooving.ogv -f webm generated/particles_mooving.webm
	avconv -i generated/particles_mooving_prc.ogv -f webm generated/particles_mooving_prc.webm