-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·32 lines (20 loc) · 776 Bytes
/
Makefile
File metadata and controls
executable file
·32 lines (20 loc) · 776 Bytes
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
#Author: Forrest Iandola forresti@eecs.berkeley.edu
OBJS = main.o convolution.o convRunner.o helpers.o
EXENAME = main
CC = nvcc
CCOPTS = `pkg-config opencv --cflags` -c -O0 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35 -Xptxas -v
LINK = nvcc
LINKOPTS = `pkg-config opencv --libs` -o
all : $(EXENAME)
$(EXENAME) : $(OBJS)
$(LINK) $(LINKOPTS) $(EXENAME) $(OBJS)
main.o : main.cpp convRunner.h helpers.h
$(CC) $(CCOPTS) main.cpp
convRunner.o : convRunner.cu convRunner.h convolution.h
$(CC) $(CCOPTS) convRunner.cu
convolution.o : convolution.cu convolution.h
$(CC) $(CCOPTS) convolution.cu
helpers.o : helpers.cpp helpers.h
$(CC) $(CCOPTS) helpers.cpp
clean :
rm -f *.o $(EXENAME) 2>/dev/null