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

incardon's avatar
incardon committed
2 3 4 5 6 7 8
LINKLIBS = $(DEFAULT_LIB) $(PTHREAD_LIBS) $(OPT_LIBS) $(HDF5_LDFLAGS) $(HDF5_LIBS) $(BOOST_LDFLAGS) $(CUDA_LIBS)

if BUILDCUDA
 CUDA_SOURCES=../../openfpm_devices/src/memory/CudaMemory.cu
else
 CUDA_SOURCES=
endif
incardon's avatar
incardon committed
9

incardon's avatar
incardon committed
10
noinst_PROGRAMS = vcluster_test
incardon's avatar
incardon committed
11
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 $(CUDA_SOURCES)
12
vcluster_test_CXXFLAGS = -Wunknown-pragmas $(AM_CXXFLAGS) $(INCLUDES_PATH)  $(BOOST_CPPFLAGS) $(CUDA_CFLAGS)
incardon's avatar
incardon committed
13 14
vcluster_test_CFLAGS = $(CUDA_CFLAGS)
vcluster_test_LDADD = $(LINKLIBS)
incardon's avatar
incardon committed
15

incardon's avatar
incardon committed
16
lib_LIBRARIES = libvcluster.a
incardon's avatar
incardon committed
17
libvcluster_a_SOURCES = VCluster/VCluster.cpp
18
libvcluster_a_CXXFLAGS = -Wunknown-pragmas $(AM_CXXFLAGS) $(INCLUDES_PATH) $(BOOST_CPPFLAGS) $(CUDA_CFLAGS)
incardon's avatar
incardon committed
19 20
libvcluster_a_CFLAGS =

incardon's avatar
incardon committed
21
nobase_include_HEADERS = MPI_wrapper/MPI_IallreduceW.hpp MPI_wrapper/MPI_IrecvW.hpp MPI_wrapper/MPI_IBcastW.hpp  MPI_wrapper/MPI_IsendW.hpp MPI_wrapper/MPI_util.hpp MPI_wrapper/MPI_IAllGather.hpp  \
22
VCluster/VCluster_base.hpp VCluster/VCluster.hpp VCluster/VCluster_meta_function.hpp\
incardon's avatar
incardon committed
23
util/Vcluster_log.hpp
incardon's avatar
incardon committed
24

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

incardon's avatar
incardon committed
28 29
test: vcluster_test
	source $(HOME)/openfpm_vars &&  cd .. && mpirun -np 3 ./src/vcluster_test && mpirun -np 4 ./src/vcluster_test
30