@@ -63,7 +63,8 @@ extern const unsigned int g_tigris_plan_len;
6363static uint8_t s_fast_arena [TIGRIS_FAST_ARENA_BYTES ] __attribute__((aligned (16 )));
6464static uint8_t s_slow_arena [TIGRIS_SLOW_ARENA_BYTES ] __attribute__((aligned (16 )));
6565static void * s_tensor_ptrs [BENCH_MAX_TENSORS ];
66- static tigris_executor_workspace_t s_executor_workspace ;
66+ static uint8_t s_executor_workspace [
67+ TIGRIS_CODEGEN_EXECUTOR_WORKSPACE_BYTES ];
6768
6869static const char * kernel_name (void )
6970{
@@ -131,12 +132,14 @@ static uint32_t run_once(tigris_plan_t *plan, tigris_mem_t *mem,
131132 tigris_exec_stats_t stats ;
132133 uint32_t c0 = platform_cycles ();
133134#ifdef BENCH_PROFILE_OPS
134- tigris_exec_error_t err = tigris_run_with_workspace (
135- plan , mem , dispatch , NULL , & stats , & s_executor_workspace );
135+ tigris_exec_error_t err = tigris_run_with_workspace_buffer (
136+ plan , mem , dispatch , NULL , & stats , s_executor_workspace ,
137+ sizeof (s_executor_workspace ));
136138#else
137139 (void )dispatch ; /* generated core owns the normal dispatch call. */
138- tigris_exec_error_t err = tigris_codegen_run (
139- plan , mem , & stats , & s_executor_workspace );
140+ tigris_exec_error_t err = tigris_codegen_run_with_workspace_buffer (
141+ plan , mem , & stats , s_executor_workspace ,
142+ sizeof (s_executor_workspace ));
140143#endif
141144 uint32_t c1 = platform_cycles ();
142145
0 commit comments