Makefile.am 1.07 KB
Newer Older
incardon's avatar
incardon committed
1

Pietro Incardona's avatar
Pietro Incardona committed
2
LINKLIBS = $(DEFAULT_LIB) $(PTHREAD_LIBS) $(OPT_LIBS) $(HDF5_LDFLAGS) $(HDF5_LIBS) $(BOOST_LDFLAGS)
incardon's avatar
incardon committed
3

incardon's avatar
incardon committed
4
noinst_PROGRAMS = vcluster_test
5
vcluster_test_SOURCES = main.cpp VCluster/VCluster.cpp ../../openfpm_devices/src/memory/HeapMemory.cpp ../../openfpm_devices/src/memory/PtrMemory.cpp ../../openfpm_devices/src/Memleak_check.cpp
incardon's avatar
incardon committed
6 7 8
vcluster_test_CXXFLAGS = $(AM_CXXFLAGS) $(INCLUDES_PATH)  $(BOOST_CPPFLAGS)
vcluster_test_CFLAGS = $(CUDA_CFLAGS)
vcluster_test_LDADD = $(LINKLIBS)
incardon's avatar
incardon committed
9

incardon's avatar
incardon committed
10
lib_LIBRARIES = libvcluster.a
incardon's avatar
incardon committed
11
libvcluster_a_SOURCES = VCluster/VCluster.cpp
incardon's avatar
incardon committed
12
libvcluster_a_CXXFLAGS = $(AM_CXXFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS)
incardon's avatar
incardon committed
13 14
libvcluster_a_CFLAGS =

15
nobase_include_HEADERS = MPI_wrapper/MPI_IallreduceW.hpp MPI_wrapper/MPI_IrecvW.hpp MPI_wrapper/MPI_IsendW.hpp MPI_wrapper/MPI_util.hpp MPI_wrapper/MPI_IAllGather.hpp  \
16
VCluster/VCluster_base.hpp VCluster/VCluster.hpp VCluster/VCluster_meta_function.hpp\
incardon's avatar
incardon committed
17
util/Vcluster_log.hpp
incardon's avatar
incardon committed
18

incardon's avatar
incardon committed
19 20
.cu.o :
	$(NVCC) $(NVCCFLAGS) -o $@ -c $<
21 22 23 24

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