Makefile.am 2.53 KB
Newer Older
incardon's avatar
incardon committed
1
LINKLIBS = $(OPENMP_LDFLAGS) $(LIBHILBERT_LIB)  $(METIS_LIB) $(PTHREAD_LIBS) $(OPT_LIBS) $(BOOST_LDFLAGS) $(BOOST_IOSTREAMS_LIB) $(CUDA_LIBS) $(PETSC_LIB) $(HDF5_LDFLAGS)  $(HDF5_LIBS) $(PARMETIS_LIB) $(BOOST_UNIT_TEST_FRAMEWORK_LIB) $(BOOST_CHRONO_LIB) $(BOOST_TIMER_LIB) $(BOOST_SYSTEM_LIB)
incardon's avatar
incardon committed
2

incardon's avatar
incardon committed
3
noinst_PROGRAMS = pdata
Pietro Incardona's avatar
Pietro Incardona committed
4
pdata_SOURCES = main.cpp Grid/grid_dist_id_unit_test.cpp  lib/pdata.cpp test_multiple_o.cpp ../openfpm_devices/src/memory/HeapMemory.cpp ../openfpm_devices/src/memory/PtrMemory.cpp ../openfpm_vcluster/src/VCluster.cpp ../openfpm_devices/src/Memleak_check.cpp
incardon's avatar
incardon committed
5
pdata_CXXFLAGS = $(OPENMP_CFLAGS) $(AM_CXXFLAGS) $(LIBHILBERT_INCLUDE) $(PETSC_INCLUDE) $(HDF5_CPPFLAGS) $(CUDA_CFLAGS) $(INCLUDES_PATH) $(PARMETIS_INCLUDE) $(METIS_INCLUDE) $(BOOST_CPPFLAGS) $(H5PART_INCLUDE) -DPARALLEL_IO  -Wno-unused-local-typedefs
incardon's avatar
incardon committed
6
pdata_CFLAGS = $(CUDA_CFLAGS)
Pietro Incardona's avatar
Pietro Incardona committed
7
pdata_LDADD = $(LINKLIBS) -lparmetis -lmetis
Pietro Incardona's avatar
Pietro Incardona committed
8
nobase_include_HEADERS = Decomposition/CartDecomposition.hpp Decomposition/CartDecomposition_ext.hpp  Decomposition/common.hpp Decomposition/Decomposition.hpp  Decomposition/ie_ghost.hpp \
Pietro Incardona's avatar
Pietro Incardona committed
9
         Decomposition/nn_processor.hpp Decomposition/ie_loc_ghost.hpp Decomposition/ORB.hpp \
incardon's avatar
incardon committed
10
         Graph/CartesianGraphFactory.hpp \
Pietro Incardona's avatar
Pietro Incardona committed
11
         Grid/grid_dist_id.hpp Grid/grid_dist_id_iterator_dec.hpp Grid/grid_dist_util.hpp  Grid/grid_dist_id_iterator_sub.hpp Grid/grid_dist_id_iterator.hpp Grid/grid_dist_key.hpp Grid/staggered_dist_grid.hpp Grid/staggered_dist_grid_util.hpp Grid/staggered_dist_grid_copy.hpp \
incardon's avatar
incardon committed
12
         Vector/vector_dist_multiphase_functions.hpp Vector/vector_dist_comm.hpp Vector/vector_dist.hpp Vector/vector_dist_ofb.hpp Vector/vector_dist_iterator.hpp Vector/vector_dist_key.hpp \
incardon's avatar
incardon committed
13
         config/config.h \
14
         example.mk \
15 16 17
         Decomposition/Distribution/metis_util.hpp Decomposition/Distribution/parmetis_dist_util.hpp  Decomposition/Distribution/parmetis_util.hpp Decomposition/Distribution/MetisDistribution.hpp Decomposition/Distribution/ParMetisDistribution.hpp Decomposition/Distribution/DistParMetisDistribution.hpp  dec_optimizer.hpp SubdomainGraphNodes.hpp \
         Graph/ids.hpp Graph/dist_map_graph.hpp Graph/DistGraphFactory.hpp \
         DLB/DLB.hpp
incardon's avatar
incardon committed
18

Pietro Incardona's avatar
Pietro Incardona committed
19 20
lib_LIBRARIES = libofpm_pdata.a
libofpm_pdata_a_SOURCES = lib/pdata.cpp
incardon's avatar
incardon committed
21
libofpm_pdata_a_CXXFLAGS = $(OPENMP_CFLAGS) $(AM_CXXFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) -I/usr/local/include -Wno-unused-local-typedefs
Pietro Incardona's avatar
Pietro Incardona committed
22 23
libofpm_pdata_a_CFLAGS =

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

test: pdata
	source $(HOME)/openfpm_vars &&  cd .. && mpirun -np 3 ./src/pdata && mpirun -np 4 ./src/pdata