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

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

if BUILDCUDA
incardon's avatar
incardon committed
5
 CUDA_SOURCES=../../openfpm_devices/src/memory/CudaMemory.cu VCluster/cuda/VCluster_semantic_unit_cuda_tests.cu
incardon's avatar
incardon committed
6 7 8
else
 CUDA_SOURCES=
endif
incardon's avatar
incardon committed
9

incardon's avatar
incardon committed
10 11
FLAGS_NVCC = -Xcudafe "--display_error_number --diag_suppress=2888 --diag_suppress=111 --diag_suppress=186 " $(MPI_INC_PATH)

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

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

incardon's avatar
incardon committed
23
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  \
24
VCluster/VCluster_base.hpp VCluster/VCluster.hpp VCluster/VCluster_meta_function.hpp\
incardon's avatar
incardon committed
25
util/Vcluster_log.hpp
incardon's avatar
incardon committed
26

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

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