Mentions légales du service

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

Merge branch 'fix/timing' into 'master'

Fix commit b7731f39 that inversed order of timing functions

See merge request !42
parents 7bb80969 de288314
No related branches found
No related tags found
1 merge request!42Fix commit b7731f39 that inversed order of timing functions
Pipeline #
......@@ -217,21 +217,21 @@ enum dparam_timing {
* General Macros for timing
*
*/
#define START_TIMING() \
t = -RUNTIME_get_time(); \
START_DAG(); \
START_TRACING(); \
START_DISTRIBUTED();
#define STOP_TIMING() \
t += RUNTIME_get_time(); \
if (iparam[IPARAM_PROFILE] == 2) { \
RUNTIME_kernelprofile_display(); \
RUNTIME_schedprofile_display(); \
} \
*t_ = t; \
STOP_DISTRIBUTED(); \
STOP_TRACING(); \
STOP_DAG();
#define START_TIMING() \
START_DAG(); \
START_TRACING(); \
START_DISTRIBUTED(); \
t = -RUNTIME_get_time();
#define STOP_TIMING() \
STOP_DISTRIBUTED(); \
t += RUNTIME_get_time(); \
STOP_TRACING(); \
STOP_DAG(); \
if (iparam[IPARAM_PROFILE] == 2) { \
RUNTIME_kernelprofile_display(); \
RUNTIME_schedprofile_display(); \
} \
*t_ = t;
#endif /* TIMING_H */
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