Previous The main_vectorize.cpp file |
Parent Vectorization Implementation |
Outline | Next The 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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
project(BranchingPredicator) cmake_minimum_required(VERSION 3.0) add_executable(branchPrediction_O0 main.cpp) set_property(TARGET branchPrediction_O0 PROPERTY COMPILE_FLAGS "-O0") target_link_libraries(branchPrediction_O0 asterics_hpc) runExample(branchPrediction_O0) add_executable(branchPrediction_O1 main.cpp) set_property(TARGET branchPrediction_O1 PROPERTY COMPILE_FLAGS "-O1") target_link_libraries(branchPrediction_O1 asterics_hpc) runExample(branchPrediction_O1) add_executable(branchPrediction_O2 main.cpp) set_property(TARGET branchPrediction_O2 PROPERTY COMPILE_FLAGS "-O2") target_link_libraries(branchPrediction_O2 asterics_hpc) runExample(branchPrediction_O2) add_executable(branchPrediction_O3 main.cpp) set_property(TARGET branchPrediction_O3 PROPERTY COMPILE_FLAGS "-O3") target_link_libraries(branchPrediction_O3 asterics_hpc) runExample(branchPrediction_O3) add_executable(branchPrediction_Ofast main.cpp) set_property(TARGET branchPrediction_Ofast PROPERTY COMPILE_FLAGS "-Ofast") target_link_libraries(branchPrediction_Ofast asterics_hpc) runExample(branchPrediction_Ofast) plotPerf("branchPredicator" branchPrediction_O0 branchPrediction_O1 branchPrediction_O2 branchPrediction_O3 branchPrediction_Ofast) add_executable(branchOptimise_O3 main_optimise.cpp) set_property(TARGET branchOptimise_O3 PROPERTY COMPILE_FLAGS "-O3") target_link_libraries(branchOptimise_O3 asterics_hpc) runExample(branchOptimise_O3) add_executable(branchOptimise_Ofast main_optimise.cpp) set_property(TARGET branchOptimise_Ofast PROPERTY COMPILE_FLAGS "-Ofast") target_link_libraries(branchOptimise_Ofast asterics_hpc) runExample(branchOptimise_Ofast) plotPerf("branchOptimise" branchPrediction_O3 branchPrediction_Ofast branchOptimise_O3 branchOptimise_Ofast) add_executable(branchVectorize_O3 main_vectorize.cpp) set_property(TARGET branchVectorize_O3 PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native") target_link_libraries(branchVectorize_O3 asterics_hpc) runExample(branchVectorize_O3) add_executable(branchVectorize_Ofast main_vectorize.cpp) set_property(TARGET branchVectorize_Ofast PROPERTY COMPILE_FLAGS "-Ofast -ftree-vectorize -march=native -mtune=native") target_link_libraries(branchVectorize_Ofast asterics_hpc) runExample(branchVectorize_Ofast) plotPerf("branchVectorize" branchOptimise_O3 branchOptimise_Ofast branchVectorize_O3 branchVectorize_Ofast) |
Previous The main_vectorize.cpp file |
Parent Vectorization Implementation |
Outline | Next The compilation |