Makefile.am 3.53 KB
Newer Older
1
LINKLIBS = $(HDF5_LDFLAGS)  $(HDF5_LIBS) $(OPENMP_LDFLAGS) $(LIBHILBERT_LIB) $(PETSC_LIB) $(SUITESPARSE_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS)  $(METIS_LIB) $(PARMETIS_LIB)  $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS) $(BOOST_IOSTREAMS_LIB) $(CUDA_LIBS)
2

3
noinst_PROGRAMS = cart_dec metis_dec dom_box vector_dist
incardon's avatar
incardon committed
4
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/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
incardon's avatar
incardon committed
5
cart_dec_CXXFLAGS = -Wno-unknown-pragmas $(OPENMP_CFLAGS) $(AM_CXXFLAGS) $(PETSC_INCLUDE) $(METIS_INCLUDE) $(PARMETIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
incardon's avatar
incardon committed
6
cart_dec_CFLAGS = $(OPENMP_CFLAGS) $(CUDA_CFLAGS)
Pietro Incardona's avatar
Pietro Incardona committed
7
cart_dec_LDADD = $(LINKLIBS) -lparmetis -lmetis
8

incardon's avatar
incardon committed
9
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/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
incardon's avatar
incardon committed
10
metis_dec_CXXFLAGS = -Wno-unknown-pragmas $(OPENMP_CFLAGS) $(AM_CXXFLAGS) $(PETSC_INCLUDE) $(METIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
incardon's avatar
incardon committed
11
metis_dec_CFLAGS = $(OPENMP_CFLAGS) $(CUDA_CFLAGS)
12 13
metis_dec_LDADD = $(LINKLIBS) -lmetis

incardon's avatar
incardon committed
14
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/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
incardon's avatar
incardon committed
15
dom_box_CXXFLAGS = -Wno-unknown-pragmas $(OPENMP_CFLAGS) $(AM_CXXFLAGS) $(PETSC_INCLUDE) $(METIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
incardon's avatar
incardon committed
16
dom_box_CFLAGS = $(OPENMP_CFLAGS) $(CUDA_CFLAGS)
17 18
dom_box_LDADD = $(LINKLIBS)

incardon's avatar
incardon committed
19
vector_dist_SOURCES = vector.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_vcluster/src/VCluster/VCluster.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_devices/src/Memleak_check.cpp
incardon's avatar
incardon committed
20
vector_dist_CXXFLAGS = -Wno-unknown-pragmas $(OPENMP_CFLAGS) $(AM_CXXFLAGS) $(LIBHILBERT_INCLUDE) $(PETSC_INCLUDE) $(PARMETIS_INCLUDE) $(METIS_INCLUDE) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(HDF5_CPPFLAGS) $(BOOST_CPPFLAGS) -I../src -Wno-unused-function -Wno-unused-local-typedefs
incardon's avatar
incardon committed
21
vector_dist_CFLAGS = $(OPENMP_CFLAGS) $(CUDA_CFLAGS)
22 23
vector_dist_LDADD = $(LINKLIBS) -lparmetis -lmetis

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


#### Rule to make images

images : cart_dec metis_dec dom_box
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
	rm -rf CartDecomposition && \
	rm -rf Metis && \
	rm -rf Vector && \
	mkdir CartDecomposition && \
	mkdir Metis && \
	mkdir Vector && \
	mpirun -np 4 ./cart_dec && \
	mpirun -np 3 ./vector_dist && \
	./dom_box && \
	./metis_dec &&  \
	mkdir -p generated && \
	mkdir -p static && \
	pvbatch Domain_decomposition.py && \
	pvbatch vector_dist.py && \
	pvbatch mooving_particles.py && \
	pvbatch mooving_particles_prc.py && \
	pvbatch vector_scal_vect.py && \
	pvbatch vector_particles.py && \
	pvbatch particles_maps.py && \
	pvbatch vector_ghost.py && \
	dot -Tsvg openfpm.dot -o generated/openfpm.svg && \
	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 && \
	avconv -i generated/particles_mooving.ogv -f webm generated/particles_mooving.webm && \
55
	avconv -i generated/particles_mooving_prc.ogv -f webm generated/particles_mooving_prc.webm