From 63d7e2220205af6cc0a1dbd571125340052be54c Mon Sep 17 00:00:00 2001 From: Jan Zyczkowski Date: Wed, 22 Jan 2025 11:09:35 +0100 Subject: [PATCH] samples: coremark: Remove compiler flag -funroll-loops Remove compiler flag -funroll-loops for heap and multithread configurations as with them the coremark benchmark will not fit to local RAM. JIRA: NCSDK-30665 Signed-off-by: Jan Zyczkowski --- samples/benchmarks/coremark/prj_heap_memory.conf | 3 ++- samples/benchmarks/coremark/prj_multiple_threads.conf | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/benchmarks/coremark/prj_heap_memory.conf b/samples/benchmarks/coremark/prj_heap_memory.conf index 08db82cf332..0f7836411b7 100644 --- a/samples/benchmarks/coremark/prj_heap_memory.conf +++ b/samples/benchmarks/coremark/prj_heap_memory.conf @@ -8,7 +8,8 @@ CONFIG_COREMARK=y # Compiler options -CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -funroll-loops -ffunction-sections -fdata-sections" +# Do not use -funroll-loops as then the coremark benchmark will not fit to local RAM. +CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -ffunction-sections -fdata-sections" # Config results output # The default logging level is set to the ERROR level. diff --git a/samples/benchmarks/coremark/prj_multiple_threads.conf b/samples/benchmarks/coremark/prj_multiple_threads.conf index 55ee6ce3539..1ffbe15fc3a 100644 --- a/samples/benchmarks/coremark/prj_multiple_threads.conf +++ b/samples/benchmarks/coremark/prj_multiple_threads.conf @@ -8,7 +8,8 @@ CONFIG_COREMARK=y # Compiler options -CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -funroll-loops -ffunction-sections -fdata-sections" +# Do not use -funroll-loops as then the coremark benchmark will not fit to local RAM. +CONFIG_COMPILER_OPT="-O3 -fno-lto -fno-pie -fno-pic -ffunction-sections -fdata-sections" # Config results output # The default logging level is set to the ERROR level.