Skip to content

Commit

Permalink
Update core_portme.h
Browse files Browse the repository at this point in the history
  • Loading branch information
GorgonMeducer committed Dec 14, 2023
1 parent b99fd02 commit 6d8303c
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions benchmark/coremark_port/core_portme.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ typedef int64_t CORE_TICKS;
#define COMPILER_FLAGS \
"Unspecified" /* "Please put compiler flags here (e.g. -o3)" */
#endif
#ifndef MEM_LOCATION
#define MEM_LOCATION "STATIC"
#endif


/* Data Types :
To avoid compiler issues, define the data types that need ot be used for
Expand Down Expand Up @@ -151,9 +149,19 @@ typedef size_t ee_size_t;
MEM_STACK - to allocate the data block on the stack (NYI).
*/
#ifndef MEM_METHOD
#define MEM_METHOD MEM_STATIC
#define MEM_METHOD MEM_STACK
#endif

#undef MEM_LOCATION
#if MEM_METHOD == MEM_MALLOC
# define MEM_LOCATION "MALLOC"
#elif MEM_METHOD == MEM_STATIC
# define MEM_LOCATION "STATIC"
#elif MEM_METHOD == MEM_STACK
# define MEM_LOCATION "STACK"
#endif


/* Configuration : MULTITHREAD
Define for parallel execution
Expand Down Expand Up @@ -205,7 +213,7 @@ typedef size_t ee_size_t;
#endif

#ifndef ITERATIONS
#define ITERATIONS 2000
#define ITERATIONS 3000
#endif

/* Variable : default_num_contexts
Expand Down

0 comments on commit 6d8303c

Please sign in to comment.