From 6bfbdcf0f6c3b80b187cad606546a2c769aae0db Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 17 Jan 2017 10:06:27 +0000
Subject: [PATCH] Unskip only local tasks

---
 src/runner.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/runner.c b/src/runner.c
index f05a6bcb36..17309d2c8c 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -752,6 +752,9 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) {
  */
 static void runner_do_unskip(struct cell *c, struct engine *e) {
 
+  /* Only operate on local cells */
+  if(c->nodeID != e->nodeID) return;
+
   /* Unskip any active tasks. */
   if (cell_is_active(c, e)) {
     const int forcerebuild = cell_unskip_tasks(c, &e->sched);
-- 
GitLab