Previous Le fichier complet |
Parent Évaluation de performances |
Outline | Next Compilation et tests de performances |
Écrivons le fichier CMakeLists.txt :
1 |
set(progVectorizeSrc ${VECTORIZE_PROPAGATION_SRC} main_vectorized.cpp) |
1 2 3 4 |
phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_O1 "-O1 -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_O2 "-O2 -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_O3 "-O3 -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_Ofast "-Ofast -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) |
1 2 3 |
phoenix_plotPerf("grayscott_seqVectorize" perf_grayscott_seq_O3 perf_grayscott_seq_vectorize_O1 perf_grayscott_seq_vectorize_O2 perf_grayscott_seq_vectorize_O3 perf_grayscott_seq_vectorize_Ofast) |
1 2 3 4 5 6 7 8 9 10 |
set(progVectorizeSrc ${VECTORIZE_PROPAGATION_SRC} main_vectorized.cpp) phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_O1 "-O1 -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_O2 "-O2 -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_O3 "-O3 -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) phoenix_compileAndRunExample(perf_grayscott_seq_vectorize_Ofast "-Ofast -ftree-vectorize -march=native -mtune=native -mavx2" "${CONFIG_GRAYSCOTT}" ${progVectorizeSrc}) phoenix_plotPerf("grayscott_seqVectorize" perf_grayscott_seq_O3 perf_grayscott_seq_vectorize_O1 perf_grayscott_seq_vectorize_O2 perf_grayscott_seq_vectorize_O3 perf_grayscott_seq_vectorize_Ofast) |
Previous Le fichier complet |
Parent Évaluation de performances |
Outline | Next Compilation et tests de performances |