7.2.3 : The compilation

Let's compile :
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
$ make
-- Configuring done
-- Generating done
-- Build files have been written to: ExampleOptimisation/build
[  7%] Built target hadamard_product_O2
[ 14%] Built target hadamard_product_O1
[ 22%] Built target hadamard_product_vectorize
[ 29%] Built target hadamard_product_O0
[ 37%] Built target hadamard_product_O3
[ 44%] Built target hadamard_product_Ofast
[ 51%] Built target hadamard_product_intrinsics
[ 62%] Built target asterics_hpc
Scanning dependencies of target saxpy_Ofast
[ 66%] Building CXX object 3-Saxpy/CMakeFiles/saxpy_Ofast.dir/main.cpp.o
[ 70%] Linking CXX executable saxpy_Ofast
[ 70%] Built target saxpy_Ofast
Scanning dependencies of target saxpy_O3
[ 74%] Building CXX object 3-Saxpy/CMakeFiles/saxpy_O3.dir/main.cpp.o
[ 77%] Linking CXX executable saxpy_O3
[ 77%] Built target saxpy_O3
Scanning dependencies of target saxpy_O0
[ 81%] Building CXX object 3-Saxpy/CMakeFiles/saxpy_O0.dir/main.cpp.o
[ 85%] Linking CXX executable saxpy_O0
[ 85%] Built target saxpy_O0
Scanning dependencies of target saxpy_O1
[ 88%] Building CXX object 3-Saxpy/CMakeFiles/saxpy_O1.dir/main.cpp.o
[ 92%] Linking CXX executable saxpy_O1
[ 92%] Built target saxpy_O1
Scanning dependencies of target saxpy_O2
[ 96%] Building CXX object 3-Saxpy/CMakeFiles/saxpy_O2.dir/main.cpp.o
[100%] Linking CXX executable saxpy_O2
[100%] Built target saxpy_O2
Let's get the restults :
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
$ make plot_all
[  6%] Built target asterics_hpc
[ 10%] Built target saxpy_O2
[ 15%] Built target saxpy_Ofast
[ 19%] Built target saxpy_O3
[ 23%] Built target saxpy_O0
[ 28%] Built target saxpy_O1
Scanning dependencies of target plot_saxpyBase
[ 30%] Run saxpy_Ofast program
Saxpy
evaluateSaxpy : nbElement = 1000, cyclePerElement = 0.405 cy/el, elapsedTime = 405 cy
evaluateSaxpy : nbElement = 2000, cyclePerElement = 0.441 cy/el, elapsedTime = 882 cy
evaluateSaxpy : nbElement = 3000, cyclePerElement = 0.456667 cy/el, elapsedTime = 1370 cy
evaluateSaxpy : nbElement = 5000, cyclePerElement = 0.445 cy/el, elapsedTime = 2225 cy
evaluateSaxpy : nbElement = 10000, cyclePerElement = 0.4675 cy/el, elapsedTime = 4675 cy
[ 32%] Run saxpy_O0 program
Saxpy
evaluateSaxpy : nbElement = 1000, cyclePerElement = 5.367 cy/el, elapsedTime = 5367 cy
evaluateSaxpy : nbElement = 2000, cyclePerElement = 5.35 cy/el, elapsedTime = 10700 cy
evaluateSaxpy : nbElement = 3000, cyclePerElement = 5.32367 cy/el, elapsedTime = 15971 cy
evaluateSaxpy : nbElement = 5000, cyclePerElement = 5.3292 cy/el, elapsedTime = 26646 cy
evaluateSaxpy : nbElement = 10000, cyclePerElement = 5.3396 cy/el, elapsedTime = 53396 cy
[ 34%] Run saxpy_O1 program
Saxpy
evaluateSaxpy : nbElement = 1000, cyclePerElement = 1.153 cy/el, elapsedTime = 1153 cy
evaluateSaxpy : nbElement = 2000, cyclePerElement = 1.1395 cy/el, elapsedTime = 2279 cy
evaluateSaxpy : nbElement = 3000, cyclePerElement = 1.13533 cy/el, elapsedTime = 3406 cy
evaluateSaxpy : nbElement = 5000, cyclePerElement = 1.1704 cy/el, elapsedTime = 5852 cy
evaluateSaxpy : nbElement = 10000, cyclePerElement = 1.1669 cy/el, elapsedTime = 11669 cy
[ 36%] Run saxpy_O2 program
Saxpy
evaluateSaxpy : nbElement = 1000, cyclePerElement = 1.589 cy/el, elapsedTime = 1589 cy
evaluateSaxpy : nbElement = 2000, cyclePerElement = 1.5125 cy/el, elapsedTime = 3025 cy
evaluateSaxpy : nbElement = 3000, cyclePerElement = 1.536 cy/el, elapsedTime = 4608 cy
evaluateSaxpy : nbElement = 5000, cyclePerElement = 1.5434 cy/el, elapsedTime = 7717 cy
evaluateSaxpy : nbElement = 10000, cyclePerElement = 1.5417 cy/el, elapsedTime = 15417 cy
[ 39%] Run saxpy_O3 program
Saxpy
evaluateSaxpy : nbElement = 1000, cyclePerElement = 0.399 cy/el, elapsedTime = 399 cy
evaluateSaxpy : nbElement = 2000, cyclePerElement = 0.442 cy/el, elapsedTime = 884 cy
evaluateSaxpy : nbElement = 3000, cyclePerElement = 0.453333 cy/el, elapsedTime = 1360 cy
evaluateSaxpy : nbElement = 5000, cyclePerElement = 0.4476 cy/el, elapsedTime = 2238 cy
evaluateSaxpy : nbElement = 10000, cyclePerElement = 0.4543 cy/el, elapsedTime = 4543 cy
[ 41%] Call gnuplot saxpyBase
[ 41%] Built target plot_saxpyBase
[ 45%] Built target hadamard_product_intrinsics
[ 50%] Built target hadamard_product_vectorize
[ 54%] Built target hadamard_product_O3
[ 63%] Built target plot_hadamardIntrinsics
[ 67%] Built target hadamard_product_Ofast
[ 71%] Built target hadamard_product_O2
[ 76%] Built target hadamard_product_O1
[ 80%] Built target hadamard_product_O0
[ 93%] Built target plot_hadamardBase
[100%] Built target plot_hadamardVectorize
[100%] Built target plot_all