From 46607528142c9c2d182aedbe4cf5639a280bf132 Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <gonnet@google.com> Date: Tue, 25 Oct 2016 22:58:26 +0200 Subject: [PATCH] store the rid only if required. --- src/runner.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runner.c b/src/runner.c index f5efc99d49..aaec28e2e6 100644 --- a/src/runner.c +++ b/src/runner.c @@ -1231,7 +1231,9 @@ void *runner_main(void *data) { /* Get the cells. */ struct cell *ci = t->ci; struct cell *cj = t->cj; +#ifdef SWIFT_DEBUG_TASKS t->rid = r->cpuid; +#endif /* Check that we haven't scheduled an inactive task */ #ifdef SWIFT_DEBUG_CHECKS -- GitLab