-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (60 loc) · 1.79 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
OBJECTS=mysort gsort stdsort threadsort tbbsort damascussteel jonderry zjarek koumes21 ForkJoinQuicksortTask
TBB=/home/ami650/src/gcc-4.6.0/tbb30_20110427oss/
JAVA_HOME=/home/ami650/src/java/jdk1.7.0/
.SILENT:
.PHONY: all clean compile cache ${OBJECTS}
all: cache ${OBJECTS}
clean:
rm -f ${OBJECTS}
cache:
cat gaussian.dat > /dev/null
mysort:
g++ -O3 -march=native mysort.cpp -o mysort
echo Running $@
/usr/bin/time ./mysort 50000000
echo
gsort:
g++ -O3 -march=native gsort.cpp -o gsort
echo Running $@
/usr/bin/time ./gsort 50000000
echo
stdsort:
g++ -O3 -march=native stdsort.cpp -o stdsort
echo Running $@
/usr/bin/time ./stdsort
echo
threadsort:
g++ -O3 -march=native -std=c++0x threadsort.cpp -o threadsort -pthread
echo Running $@
/usr/bin/time ./threadsort
echo
tbbsort:
g++ -O3 -march=native -std=c++0x -I${TBB}/include -L${TBB}/build/linux_intel64_gcc_cc4.6.1_libc2.5_kernel2.6.18_release tbbsort.cpp -o tbbsort -pthread -ltbb
echo Running $@
/usr/bin/time ./tbbsort
echo
damascussteel:
g++ -O3 -march=native -std=c++0x -DSPLIT=8 damascussteel.cpp -o damascussteel -pthread
echo Running $@
/usr/bin/time ./damascussteel 50000000
echo
jonderry:
g++ -O3 -march=native jonderry.cpp -o jonderry
echo Running $@
/usr/bin/time ./jonderry 50000000
echo
zjarek:
g++ -O3 -march=native -std=c++0x -DSPLIT=16 zjarek.cpp -o zjarek -pthread
echo Running $@
/usr/bin/time ./zjarek
echo
koumes21:
g++ -O3 -march=native -std=c++0x -I${TBB}/include -L${TBB}/build/linux_intel64_gcc_cc4.6.1_libc2.5_kernel2.6.18_release koumes21.cpp -o koumes21 -pthread -ltbb
echo Running $@
/usr/bin/time ./koumes21 50000000
echo
ForkJoinQuicksortTask:
${JAVA_HOME}/bin/javac ForkJoinQuicksortTask.java
echo Running $@
/usr/bin/time ${JAVA_HOME}/bin/java -server ForkJoinQuicksortTask 50000000
echo