Commit 4ebc55c4 authored by Samuel Thibault's avatar Samuel Thibault

Don't compile in iteration_push/pop without tracing support

parent a3481c8e
......@@ -52,8 +52,13 @@ int RUNTIME_rank (MORSE_context_t*);
int RUNTIME_init_scheduler (MORSE_context_t*, int, int, int);
void RUNTIME_finalize_scheduler (MORSE_context_t*);
void RUNTIME_barrier (MORSE_context_t*);
#ifdef CHAMELEON_ENABLE_TRACING
void RUNTIME_iteration_push (MORSE_context_t*, unsigned long iteration);
void RUNTIME_iteration_pop (MORSE_context_t*);
#else
#define RUNTIME_iteration_push(c,i) ((void)0)
#define RUNTIME_iteration_pop(c) ((void)0)
#endif
void RUNTIME_pause (MORSE_context_t*);
void RUNTIME_resume (MORSE_context_t*);
void RUNTIME_comm_rank (int*);
......
......@@ -70,6 +70,7 @@ void RUNTIME_barrier(MORSE_context_t *morse)
/*******************************************************************************
* Set iteration numbers for traces
**/
#ifdef CHAMELEON_ENABLE_TRACING
void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration )
{
(void)morse;
......@@ -80,6 +81,7 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse )
(void)morse;
return;
}
#endif
/*******************************************************************************
* To suspend the processing of new tasks by workers
......
......@@ -71,6 +71,7 @@ void RUNTIME_finalize_scheduler(MORSE_context_t *morse)
/*******************************************************************************
* Set iteration numbers for traces
**/
#ifdef CHAMELEON_ENABLE_TRACING
void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration )
{
(void)morse;
......@@ -81,6 +82,7 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse )
(void)morse;
return;
}
#endif
/*******************************************************************************
* To suspend the processing of new tasks by workers
......
......@@ -178,6 +178,7 @@ void RUNTIME_barrier( MORSE_context_t *morse )
/*******************************************************************************
* Set iteration numbers for traces
**/
#ifdef CHAMELEON_ENABLE_TRACING
void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration )
{
(void)morse;
......@@ -192,6 +193,7 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse )
starpu_iteration_pop();
#endif
}
#endif
/*******************************************************************************
* To suspend the processing of new tasks by workers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment