-
Notifications
You must be signed in to change notification settings - Fork 5
/
makefile
82 lines (61 loc) · 2.15 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.SUFFIXES : .cu
.cu.o :
nvcc $(NVCCFLAGS) -c $^
NVCCFLAGS = -arch=sm_35
all: cuda-devices map-cuda-small map-noncuda map-cuda-large \
scan-cuda-small scan-noncuda null reduce-noncuda reduce-cuda \
transpose-noncuda transpose-cuda-serial transpose-cuda-row \
transpose-cuda-full transpose-cuda-coalesce \
no-sync-cuda sync-cuda \
shift-cuda-nosync
shift-cuda-nosync : shift-cuda-nosync.o
nvcc $(NVCCFLAGS) -o shift-cuda-nosync $^
sync-cuda : sync-cuda.o
nvcc $(NVCCFLAGS) -o sync-cuda $^
no-sync-cuda : no-sync-cuda.o
nvcc $(NVCCFLAGS) -o no-sync-cuda $^
cuda-devices : cuda-devices.o
nvcc $(NVCCFLAGS) -o cuda-devices $^
map-noncuda : map-noncuda.o clock.o
nvcc $(NVCCFLAGS) -o map-noncuda $^
map-cuda-small : map-cuda-kernel-small.o map-cuda-small.o clock.o
nvcc $(NVCCFLAGS) -o map-cuda-small $^
map-cuda-large : map-cuda-kernel-large.o map-cuda-large.o clock.o
nvcc $(NVCCFLAGS) -o map-cuda-large $^
null : null-kernel.o map-cuda-large.o clock.o
nvcc $(NVCCFLAGS) -o null $^
scan-cuda-small: scan-cuda-kernel-small.o scan-cuda-test-small.o clock.o
nvcc $(NVCCFLAGS) -o scan-cuda-small $^
scan-noncuda: scan-noncuda.o clock.o
nvcc $(NVCCFLAGS) -o scan-noncuda $^
reduce-noncuda: reduce-noncuda.o clock.o
nvcc $(NVCCFLAGS) -o reduce-noncuda $^
reduce-cuda: reduce-cuda-large.o reduce-cuda-kernel.o clock.o
nvcc $(NVCCFLAGS) -o reduce-cuda $^
transpose-noncuda: transpose-noncuda.o clock.o
nvcc $(NVCCFLAGS) -o transpose-noncuda $^
transpose-cuda-serial: transpose-cuda-serial.o clock.o
nvcc $(NVCCFLAGS) -o transpose-cuda-serial $^
transpose-cuda-row: transpose-cuda-row.o clock.o
nvcc $(NVCCFLAGS) -o transpose-cuda-row $^
transpose-cuda-full: transpose-cuda-full.o clock.o
nvcc $(NVCCFLAGS) -o transpose-cuda-full $^
transpose-cuda-coalesce: transpose-cuda-coalesce.o clock.o
nvcc $(NVCCFLAGS) -o transpose-cuda-coalesce $^
clean:
- rm core
- rm *.o
- rm cuda-devices
- rm map-noncuda
- rm map-cuda-small
- rm map-cuda-large
- rm scan-cuda-small
- rm scan-noncuda
- rm null
- rm reduce-noncuda
- rm reduce-cuda
- rm transpose-noncuda
- rm transpose-cuda-serial
- rm transpose-cuda-row
- rm transpose-cuda-full
- rm transpose-cuda-coalesce