-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
39 lines (27 loc) · 1.17 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
NVCC=nvcc
CC=nvcc
NVCCFLAGS=-use_fast_math -O3
# Modify this to change the target architecture
#NVCCFLAGS += -gencode=arch=compute_50,code=sm_50 \
# -gencode=arch=compute_50,code=compute_50 \
# -gencode=arch=compute_52,code=sm_52 \
# -gencode=arch=compute_60,code=sm_60 \
# -gencode=arch=compute_61,code=sm_61 \
# -gencode=arch=compute_70,code=sm_70 \
# -gencode=arch=compute_75,code=sm_75 \
# -gencode=arch=compute_75,code=compute_75
CFLAGS=-O3
QuickSES: CudaSurf.o cpdb/cpdb.o cpdb/utils.o SmoothMesh.o
$(CC) -o QuickSES $(CFLAGS) cpdb/cpdb.o cpdb/utils.o SmoothMesh.o CudaSurf.o
CudaSurf.o: CudaSurf.cu
$(NVCC) -c -o CudaSurf.o CudaSurf.cu -Icpdb/ $(NVCCFLAGS)
SmoothMesh.o: SmoothMesh.cpp
$(CC) -c -o SmoothMesh.o SmoothMesh.cpp $(CFLAGS)
cpdb/utils.o: cpdb/utils.cpp
$(CC) -c -o cpdb/utils.o cpdb/utils.cpp $(CFLAGS)
cpdb/cpdb.o: cpdb/cpdb.cpp
$(CC) -c -o cpdb/cpdb.o cpdb/cpdb.cpp $(CFLAGS)
clean:
rm -f *.o QuickSES
rm -f cpdb/*.o
#nvcc --shared CudaSurf.cu cpdb/*.cpp -Icpdb/ SmoothMesh.cpp -o QuickSES.dll -use_fast_math -O3 --compiler-options "-fPIC"