Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2bac3c09 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Merge branch 'fix/tracing' into 'master'

Propose a second more complete patch to Fix #38

Closes #38

See merge request !52
parents 137a3f52 c9ef1175
No related branches found
No related tags found
1 merge request!52Propose a second more complete patch to Fix #38
Pipeline #
...@@ -42,7 +42,10 @@ ...@@ -42,7 +42,10 @@
#cmakedefine CHAMELEON_USE_CUBLAS #cmakedefine CHAMELEON_USE_CUBLAS
#cmakedefine CHAMELEON_USE_CUBLAS_V2 #cmakedefine CHAMELEON_USE_CUBLAS_V2
/* Simulating */ /* Simulation */
#cmakedefine CHAMELEON_SIMULATION #cmakedefine CHAMELEON_SIMULATION
/* Tracing support */
#cmakedefine CHAMELEON_ENABLE_TRACING
#endif /* CHAMELEON_CONFIG_H_HAS_BEEN_INCLUDED */ #endif /* CHAMELEON_CONFIG_H_HAS_BEEN_INCLUDED */
...@@ -52,13 +52,8 @@ int RUNTIME_rank (MORSE_context_t*); ...@@ -52,13 +52,8 @@ int RUNTIME_rank (MORSE_context_t*);
int RUNTIME_init_scheduler (MORSE_context_t*, int, int, int); int RUNTIME_init_scheduler (MORSE_context_t*, int, int, int);
void RUNTIME_finalize_scheduler (MORSE_context_t*); void RUNTIME_finalize_scheduler (MORSE_context_t*);
void RUNTIME_barrier (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_push (MORSE_context_t*, unsigned long iteration);
void RUNTIME_iteration_pop (MORSE_context_t*); 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_pause (MORSE_context_t*);
void RUNTIME_resume (MORSE_context_t*); void RUNTIME_resume (MORSE_context_t*);
void RUNTIME_comm_rank (int*); void RUNTIME_comm_rank (int*);
......
...@@ -70,10 +70,9 @@ void RUNTIME_barrier(MORSE_context_t *morse) ...@@ -70,10 +70,9 @@ void RUNTIME_barrier(MORSE_context_t *morse)
/******************************************************************************* /*******************************************************************************
* Set iteration numbers for traces * Set iteration numbers for traces
**/ **/
#ifdef CHAMELEON_ENABLE_TRACING
void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration ) void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration )
{ {
(void)morse; (void)morse; (void)iteration;
return; return;
} }
void RUNTIME_iteration_pop( MORSE_context_t *morse ) void RUNTIME_iteration_pop( MORSE_context_t *morse )
...@@ -81,7 +80,6 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse ) ...@@ -81,7 +80,6 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse )
(void)morse; (void)morse;
return; return;
} }
#endif
/******************************************************************************* /*******************************************************************************
* To suspend the processing of new tasks by workers * To suspend the processing of new tasks by workers
......
...@@ -71,10 +71,9 @@ void RUNTIME_finalize_scheduler(MORSE_context_t *morse) ...@@ -71,10 +71,9 @@ void RUNTIME_finalize_scheduler(MORSE_context_t *morse)
/******************************************************************************* /*******************************************************************************
* Set iteration numbers for traces * Set iteration numbers for traces
**/ **/
#ifdef CHAMELEON_ENABLE_TRACING
void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration ) void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration )
{ {
(void)morse; (void)morse; (void)iteration;
return; return;
} }
void RUNTIME_iteration_pop( MORSE_context_t *morse ) void RUNTIME_iteration_pop( MORSE_context_t *morse )
...@@ -82,7 +81,6 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse ) ...@@ -82,7 +81,6 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse )
(void)morse; (void)morse;
return; return;
} }
#endif
/******************************************************************************* /*******************************************************************************
* To suspend the processing of new tasks by workers * To suspend the processing of new tasks by workers
......
...@@ -172,7 +172,6 @@ void RUNTIME_barrier( MORSE_context_t *morse ) ...@@ -172,7 +172,6 @@ void RUNTIME_barrier( MORSE_context_t *morse )
/******************************************************************************* /*******************************************************************************
* Set iteration numbers for traces * Set iteration numbers for traces
**/ **/
#ifdef CHAMELEON_ENABLE_TRACING
void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration ) void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration )
{ {
(void)morse; (void)morse;
...@@ -180,6 +179,7 @@ void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration ) ...@@ -180,6 +179,7 @@ void RUNTIME_iteration_push( MORSE_context_t *morse, unsigned long iteration )
starpu_iteration_push(iteration); starpu_iteration_push(iteration);
#endif #endif
} }
void RUNTIME_iteration_pop( MORSE_context_t *morse ) void RUNTIME_iteration_pop( MORSE_context_t *morse )
{ {
(void)morse; (void)morse;
...@@ -187,7 +187,6 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse ) ...@@ -187,7 +187,6 @@ void RUNTIME_iteration_pop( MORSE_context_t *morse )
starpu_iteration_pop(); starpu_iteration_pop();
#endif #endif
} }
#endif
/******************************************************************************* /*******************************************************************************
* To suspend the processing of new tasks by workers * 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