Previous Le fichier source complet |
Parent Bibliothèque de calcul |
Outline | Next Évaluation de performances |
Écrivons le fichier CMakeLists.txt :
1 |
file(GLOB mainSource "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp") |
1 |
add_library(gray_scott_vectorized SHARED ${mainSource}) |
1 |
set_property(TARGET gray_scott_vectorized PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -mavx2") |
1 |
target_link_libraries(gray_scott_vectorized TBB::tbb)
|
1 2 3 4 5 6 7 |
file(GLOB mainSource "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp") add_library(gray_scott_vectorized SHARED ${mainSource}) set_property(TARGET gray_scott_vectorized PROPERTY COMPILE_FLAGS "-O3 -ftree-vectorize -march=native -mtune=native -mavx2") target_link_libraries(gray_scott_vectorized TBB::tbb) |
Previous Le fichier source complet |
Parent Bibliothèque de calcul |
Outline | Next Évaluation de performances |