Makefile.testareal 987 Bytes
Newer Older
karius's avatar
karius committed
1 2 3 4 5 6
CC=gcc
NVCC=nvcc
IMP_INCLUDE = -I/data/git/imp/bin/include/ -I/data/git/imp/build/src/dependency/RMF/include/
EIGEN_INCLUDE = -I/data/tools/eigen-eigen-323c052e1731/
CUDA_INCLUDE = -I./cuda_util_include #most of it comes with nvcc, this is a convenience lib

karius's avatar
karius committed
7
CFLAGS=-I. $(CUDA_INCLUDE)  $(IMP_INCLUDE) $(EIGEN_INCLUDE) -D_GLIBCXX_USE_CXX11_ABI=0 -g -G #the latter is for IMP
karius's avatar
karius committed
8 9 10


BOOST_LINKS = -L/usr/local/lib -lboost_filesystem
karius's avatar
karius committed
11 12
IMP_LINKS = -L/data/git/imp/build/lib/ -lRMF -limp_core -limp_rmf -limp_kernel -limp_atom -limp_algebra
CUDA_LINKS = -L/usr/local/cuda-10.0/lib64/ -lcusolver -lcudart -lcublas -lcuda
karius's avatar
karius committed
13

karius's avatar
karius committed
14
LFLAGS=-L. $(IMP_LINKS) $(BOOST_LINKS) $(CUDA_LINKS)
karius's avatar
karius committed
15

karius's avatar
karius committed
16
all: 
karius's avatar
karius committed
17
	$(NVCC) $(CFLAGS) $(LFLAGS) testareal.cu -o testareal CRotationGrid.o CMrcReader.o FitterIMPResources.o
karius's avatar
karius committed
18

karius's avatar
karius committed
19 20
CMrcReader.o: CMrcReader.cpp
	$(NVCC) -c -o $@ $< $(CFLAGS) 
karius's avatar
karius committed
21

karius's avatar
karius committed
22 23
CRotationGrid.o: CRotationGrid.cpp
	$(NVCC) -c -o $@ $< $(CFLAGS) 
karius's avatar
karius committed
24 25 26
	
FitterIMPResources.o: FitterIMPResources.cpp
	$(NVCC) -c -o $@ $< $(CFLAGS) 
karius's avatar
karius committed
27

karius's avatar
karius committed
28