Previous Full main_intrinsics.cpp file |
Parent Manual vectorization (by Intrinsic functions) |
Outline | Next Compilation |
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 |
project(HadamardProduct) cmake_minimum_required(VERSION 3.0) add_executable(hadamard_product_O0 main.cpp) set_property(TARGET hadamard_product_O0 PROPERTY COMPILE_FLAGS "-O0") runExample(hadamard_product_O0) add_executable(hadamard_product_O1 main.cpp) set_property(TARGET hadamard_product_O1 PROPERTY COMPILE_FLAGS "-O1") runExample(hadamard_product_O1) add_executable(hadamard_product_O2 main.cpp) set_property(TARGET hadamard_product_O2 PROPERTY COMPILE_FLAGS "-O2") runExample(hadamard_product_O2) add_executable(hadamard_product_O3 main.cpp) set_property(TARGET hadamard_product_O3 PROPERTY COMPILE_FLAGS "-O3") runExample(hadamard_product_O3) add_executable(hadamard_product_Ofast main.cpp) set_property(TARGET hadamard_product_Ofast PROPERTY COMPILE_FLAGS "-Ofast") runExample(hadamard_product_Ofast) plotPerf("hadamardBase" hadamard_product_O0 hadamard_product_O1 hadamard_product_O2 hadamard_product_O3 hadamard_product_Ofast) add_executable(hadamard_product_vectorize main_vectorize.cpp) set_property(TARGET hadamard_product_vectorize PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -mavx2") runExample(hadamard_product_vectorize) plotPerf("hadamardVectorize" hadamard_product_O3 hadamard_product_vectorize) add_executable(hadamard_product_intrinsics main_intrinsics.cpp) set_property(TARGET hadamard_product_intrinsics PROPERTY COMPILE_FLAGS "-O3 -march=native -mtune=native") runExample(hadamard_product_intrinsics) plotPerf("hadamardIntrinsics" hadamard_product_O3 hadamard_product_vectorize hadamard_product_intrinsics) |
Previous Full main_intrinsics.cpp file |
Parent Manual vectorization (by Intrinsic functions) |
Outline | Next Compilation |