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
|
project(Barycentre)
cmake_minimum_required(VERSION 3.0)
add_executable(barycentre_base_O0 barycentre.cpp main_barycentre.cpp)
set_property(TARGET barycentre_base_O0 PROPERTY COMPILE_FLAGS "-O0")
target_link_libraries(barycentre_base_O0 asterics_hpc)
runExample(barycentre_base_O0)
add_executable(barycentre_base_O1 barycentre.cpp main_barycentre.cpp)
set_property(TARGET barycentre_base_O1 PROPERTY COMPILE_FLAGS "-O1")
target_link_libraries(barycentre_base_O1 asterics_hpc)
runExample(barycentre_base_O1)
add_executable(barycentre_base_O2 barycentre.cpp main_barycentre.cpp)
set_property(TARGET barycentre_base_O2 PROPERTY COMPILE_FLAGS "-O2")
target_link_libraries(barycentre_base_O2 asterics_hpc)
runExample(barycentre_base_O2)
add_executable(barycentre_base_O3 barycentre.cpp main_barycentre.cpp)
set_property(TARGET barycentre_base_O3 PROPERTY COMPILE_FLAGS "-O3")
target_link_libraries(barycentre_base_O3 asterics_hpc)
runExample(barycentre_base_O3)
add_executable(barycentre_base_Ofast barycentre.cpp main_barycentre.cpp)
set_property(TARGET barycentre_base_Ofast PROPERTY COMPILE_FLAGS "-Ofast")
target_link_libraries(barycentre_base_Ofast asterics_hpc)
runExample(barycentre_base_Ofast)
plotPerf("barycentreBase" barycentre_base_O0 barycentre_base_O1 barycentre_base_O2 barycentre_base_O3 barycentre_base_Ofast)
add_executable(barycentre_vectorize_O3 barycentre_vectorize.cpp main_barycentre_vectorize.cpp)
set_property(TARGET barycentre_vectorize_O3 PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -mavx2")
target_link_libraries(barycentre_vectorize_O3 asterics_hpc)
runExample(barycentre_vectorize_O3)
add_executable(barycentre_vectorizeSplit_O3 barycentre_vectorizeSplit.cpp main_barycentre_vectorizeSplit.cpp)
set_property(TARGET barycentre_vectorizeSplit_O3 PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -mavx2")
target_link_libraries(barycentre_vectorizeSplit_O3 asterics_hpc)
runExample(barycentre_vectorizeSplit_O3)
plotPerf("barycentreVectorize" barycentre_base_O3 barycentre_vectorize_O3 barycentre_vectorizeSplit_O3)
add_executable(barycentre_intrinsics barycentre_intrinsics.cpp main_barycentre_intrinsics.cpp)
set_property(TARGET barycentre_intrinsics PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -mavx2")
target_link_libraries(barycentre_intrinsics asterics_hpc)
runExample(barycentre_intrinsics)
plotPerf("barycentreIntrinsics" barycentre_base_O3 barycentre_vectorize_O3 barycentre_vectorizeSplit_O3 barycentre_intrinsics)
|