From 112920b40513d9fa2d61730ef34c7432593046da Mon Sep 17 00:00:00 2001 From: Guillaume Sylvand <guillaume.sylvand@airbus.com> Date: Wed, 7 Sep 2016 16:07:40 +0000 Subject: [PATCH] Disable profiling in timing driver instead of doing it in the runtime initialization --- runtime/starpu/control/runtime_control.c | 4 ---- timing/timing.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c index e1a05a8ab..8e6952a17 100644 --- a/runtime/starpu/control/runtime_control.c +++ b/runtime/starpu/control/runtime_control.c @@ -122,10 +122,6 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int ncpus, int ncudas, int n } #endif -#if defined(HAVE_STARPU_FXT_PROFILING) - starpu_fxt_stop_profiling(); -#endif - #if defined(CHAMELEON_USE_CUDA) starpu_cublas_init(); #endif diff --git a/timing/timing.c b/timing/timing.c index 5d5f67f68..dafc8d773 100644 --- a/timing/timing.c +++ b/timing/timing.c @@ -602,6 +602,10 @@ main(int argc, char *argv[]) { MORSE_Init( iparam[IPARAM_THRDNBR], iparam[IPARAM_NCUDAS] ); + /* Stops profiling here to avoid profiling uninteresting routines. + It will be reactivated in the time_*.c routines with the macro START_TIMING() */ + RUNTIME_stop_profiling(); + MORSE_Disable(MORSE_AUTOTUNING); MORSE_Set(MORSE_TILE_SIZE, iparam[IPARAM_NB] ); MORSE_Set(MORSE_INNER_BLOCK_SIZE, iparam[IPARAM_IB] ); -- GitLab