8.3.4.1 : The compilation

Let's compile :

$ make

-- Configuring done

-- Generating done

-- Build files have been written to: ExampleOptimisation/build

[ 4%] Built target hadamard_product_O2

[ 8%] Built target hadamard_product_O1

[ 12%] Built target hadamard_product_vectorize

[ 14%] Built target hadamard_product_O0

[ 16%] Built target hadamard_product_O3

[ 20%] Built target hadamard_product_Ofast

[ 22%] Built target hadamard_product_intrinsics

[ 27%] Built target asterics_hpc

[ 29%] Built target saxpy_O2

[ 33%] Built target saxpy_O0

[ 37%] Built target saxpy_O3

[ 41%] Built target saxpy_O1

[ 43%] Built target saxpy_Ofast

[ 47%] Built target saxpy_vectorize

[ 52%] Built target saxpy_intrinsics

Scanning dependencies of target reduction_real_vectorize_Ofast

[ 54%] Building CXX object 4-Reduction/CMakeFiles/reduction_real_vectorize_Ofast.dir/reduction_vectorize.cpp.o

[ 56%] Building CXX object 4-Reduction/CMakeFiles/reduction_real_vectorize_Ofast.dir/main_vectorize.cpp.o

[ 58%] Linking CXX executable reduction_real_vectorize_Ofast

[ 58%] Built target reduction_real_vectorize_Ofast

Scanning dependencies of target reduction_real_vectorize_O3

[ 60%] Building CXX object 4-Reduction/CMakeFiles/reduction_real_vectorize_O3.dir/reduction_vectorize.cpp.o

[ 62%] Building CXX object 4-Reduction/CMakeFiles/reduction_real_vectorize_O3.dir/main_vectorize.cpp.o

[ 62%] Linking CXX executable reduction_real_vectorize_O3

[ 62%] Built target reduction_real_vectorize_O3

[ 68%] Built target reduction_real_O0

[ 70%] Built target reduction_O1

[ 75%] Built target reduction_O0

[ 79%] Built target reduction_real_Ofast

[ 81%] Built target reduction_O3

[ 87%] Built target reduction_real_O3

[ 91%] Built target reduction_real_O1

[ 95%] Built target reduction_real_O2

[100%] Built target reduction_O2



Let's get the restults :

$ make plot_all

[ 2%] Built target asterics_hpc

[ 6%] Built target reduction_real_O3

[ 9%] Built target reduction_real_vectorize_Ofast

[ 12%] Built target reduction_real_vectorize_O3

[ 14%] Built target reduction_real_Ofast

Scanning dependencies of target plot_reductionVectorize

[ 16%] Run reduction_real_vectorize_Ofast program

Reduction vectorize

evaluateReduction : nbElement = 1000, cyclePerElement = 1.305 cy/el, elapsedTime = 1305 cy

evaluateReduction : nbElement = 2000, cyclePerElement = 1.554 cy/el, elapsedTime = 3108 cy

evaluateReduction : nbElement = 3000, cyclePerElement = 1.64367 cy/el, elapsedTime = 4931 cy

evaluateReduction : nbElement = 5000, cyclePerElement = 1.7154 cy/el, elapsedTime = 8577 cy

evaluateReduction : nbElement = 10000, cyclePerElement = 1.7719 cy/el, elapsedTime = 17719 cy

[ 17%] Run reduction_real_vectorize_O3 program

Reduction vectorize

evaluateReduction : nbElement = 1000, cyclePerElement = 13.912 cy/el, elapsedTime = 13912 cy

evaluateReduction : nbElement = 2000, cyclePerElement = 14.242 cy/el, elapsedTime = 28484 cy

evaluateReduction : nbElement = 3000, cyclePerElement = 14.3533 cy/el, elapsedTime = 43060 cy

evaluateReduction : nbElement = 5000, cyclePerElement = 14.4466 cy/el, elapsedTime = 72233 cy

evaluateReduction : nbElement = 10000, cyclePerElement = 14.5158 cy/el, elapsedTime = 145158 cy

[ 18%] Call gnuplot reductionVectorize

[ 19%] Built target plot_reductionVectorize

[ 20%] Built target hadamard_product_intrinsics

[ 23%] Built target hadamard_product_vectorize

[ 24%] Built target hadamard_product_O3

[ 28%] Built target plot_hadamardIntrinsics

[ 30%] Built target hadamard_product_Ofast

[ 33%] Built target hadamard_product_O2

[ 35%] Built target hadamard_product_O1

[ 37%] Built target hadamard_product_O0

[ 43%] Built target plot_hadamardBase

[ 45%] Built target plot_hadamardVectorize

[ 48%] Built target saxpy_intrinsics

[ 50%] Built target saxpy_O3

[ 53%] Built target saxpy_vectorize

[ 58%] Built target plot_saxpyIntrinsics

[ 60%] Built target plot_saxpyVectorize

[ 61%] Built target saxpy_Ofast

[ 62%] Built target saxpy_O2

[ 65%] Built target saxpy_O0

[ 67%] Built target saxpy_O1

[ 72%] Built target plot_saxpyBase

[ 75%] Built target reduction_real_O2

[ 79%] Built target reduction_real_O0

[ 81%] Built target reduction_real_O1

[ 87%] Built target plot_reductionReal

[ 90%] Built target reduction_O2

[ 91%] Built target reduction_O1

[ 93%] Built target reduction_O0

[ 95%] Built target reduction_O3

[100%] Built target plot_reductionBase

[100%] Built target plot_all