forked from wfcommons/WfCommons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 789 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 789 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
32
33
34
35
36
37
38
39
40
# Makefile
objects = bin/cpu-benchmark.o
CXX= g++
CPPFLAGS= -std=c++11
execname = bin/cpu-benchmark
# compile
$(execname): $(objects)
$(CXX) $(CPPFLAGS) -o $(execname) $(objects)
#clean Makefile
clean:
rm -rf $(objects) $(execname)
# #define variables
# objects= gpu-benchmark.o kernels.o
# NVCC= nvcc #cuda c compiler
# CPPFLAGS= -std=c++11
# opt= -O2 #optimization flag
# LIBS=
# execname= gpu-benchmark
# .PHONY: clean
# #compile
# $(execname): $(objects)
# $(NVCC) $(CPPFLAGS) $(opt) -o $(execname) $(objects) $(LIBS)
# kernels.o: kernels.cu
# $(NVCC) $(CPPFLAGS) $(opt) -c kernels.cu
# gpu-benchmark.o: gpu-benchmark.cu
# $(NVCC) $(CPPFLAGS) $(opt) -c gpu-benchmark.cu
# #clean Makefile
# clean:
# rm $(objects)
# #end of Makefile