forked from antonmks/Alenka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (51 loc) · 1.99 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
# Makefile
#
# The -D below may have to change to /D on some dos compilers
CFLAGS=--machine 64 -O3 -arch=sm_20 -D UNROLL_COUNT=40 -std=c++11
alenka : bison.o merge.o \
MurmurHash2_64.o filter.o \
strings_filter.o strings_join.o strings_sort_host.o strings_sort_device.o \
select.o zone_map.o atof.o cm.o mgpucontext.o callbacks.o main.o
#nvcc -O3 -arch=sm_20 -L . mgpucontext.o mgpuutil.o -o alenka bison.o merge.o
nvcc $(CFLAGS) -L . mgpucontext.o mgpuutil.o -o alenka bison.o merge.o \
MurmurHash2_64.o filter.o \
strings_filter.o strings_join.o strings_sort_host.o strings_sort_device.o \
select.o zone_map.o atof.o cm.o \
callbacks.o main.o
#nvcc = nvcc --machine 64 -O3 -arch=sm_20 -c
nvcc = nvcc $(CFLAGS) -c
callbacks.o : callbacks.c callbacks.h
$(nvcc) callbacks.c
main.o : main.cu
$(nvcc) main.cu
cm.o : cm.cu cm.h
$(nvcc) cm.cu
bison.o : bison.cu cm.h sorts.cu
$(nvcc) -I moderngpu/include/ bison.cu
merge.o : merge.cu cm.h merge.h
$(nvcc) merge.cu
MurmurHash2_64.o : MurmurHash2_64.cu cm.h
$(nvcc) MurmurHash2_64.cu
filter.o : filter.cu cm.h filter.h
$(nvcc) filter.cu
strings_filter.o : strings_filter.cu strings.h strings_type.h
$(nvcc) strings_filter.cu
strings_join.o : strings_join.cu strings.h strings_type.h
$(nvcc) strings_join.cu
strings_sort_host.o : strings_sort_host.cu strings.h strings_type.h
$(nvcc) strings_sort_host.cu
strings_sort_device.o : strings_sort_device.cu strings.h strings_type.h
$(nvcc) strings_sort_device.cu
select.o : select.cu cm.h select.h
$(nvcc) select.cu
zone_map.o : zone_map.cu cm.h zone_map.h
$(nvcc) zone_map.cu
atof.o : atof.cu cm.h atof.h
$(nvcc) atof.cu
mgpucontext.o : moderngpu-master/src/mgpucontext.cu
$(nvcc) -I moderngpu-master/include/ moderngpu-master/src/mgpucontext.cu moderngpu-master/src/mgpuutil.cpp
clean : del bison.o merge.o \
MurmurHash2_64.o filter.o \
strings_filter.o strings_join.o strings_sort_host.o strings_sort_device.o \
select.o zone_map.o itoa.o \
atof.o cm.o mgpucontext.o