Skip to content

Commit

Permalink
add a global variable to observe Coremark score
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Jan 17, 2024
1 parent ee560a0 commit 2604ef3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions benchmark/coremark_port/core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ char *mem_name[3] = { "Static", "Heap", "Stack" };
*/

__attribute__((used))
volatile float fCoremarkScore = 0.0f;

#if MAIN_HAS_NOARGC
MAIN_RETURN_TYPE
coremark_main(void)
Expand Down Expand Up @@ -409,6 +412,8 @@ for (i = 0; i < MULTITHREAD; i++)
double dfResult = (double)((double)1000000
* (double)default_num_contexts*results[0].iterations
/ (double)total_time);
fCoremarkScore = (float)dfResult;

ee_printf( "CoreMark 1.0 : %f / %s %s",
dfResult,
COMPILER_VERSION,
Expand Down

0 comments on commit 2604ef3

Please sign in to comment.