-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (25 loc) · 935 Bytes
/
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
CC = /usr/local/cuda-7.5/bin/nvcc
test: main.cu utils.o impl_utils.o impl1.o impl2.o
$(CC) main.cu utils.o impl_utils.o impl1.o impl2.o -O3 -arch=sm_30 -o test
#sequential.o: sequential.cpp
# $(CC) sequential.cpp -dc
utils.o: utils.cu utils.h
$(CC) utils.cu -dc
impl_utils.o: impl_utils.cu implementation.h
$(CC) impl_utils.cu -dc
impl1.o: impl1.cu implementation.h
$(CC) impl1.cu -dc
impl2.o: impl2.cu implementation.h
$(CC) impl2.cu -dc
run: test
./test --input in.txt --output out.txt --bsize 1024 --bcount 2 --method 1
run2: test
./test --input in.txt --output out.txt --bsize 1024 --bcount 2 --method 2
run11: test
./test --input input/male.txt --output out.txt --bsize 768 --bcount 2 --method 1
run22: test
./test --input input/female.txt --output out.txt --bsize 768 --bcount 2 --method 1
run33: test
./test --input input/last.txt --output out.txt --bsize 768 --bcount 2 --method 1
clean:
rm -f *.o test