Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4ebc55c4 authored by THIBAULT Samuel's avatar THIBAULT Samuel
Browse files

Don't compile in iteration_push/pop without tracing support

parent a3481c8e
No related branches found
No related tags found
1 merge request!22Add iteration numbers for traces
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment