From e25c7c7fa37becbbf6a95e566ad33606477e079e Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Thu, 1 Sep 2016 12:59:32 +0100 Subject: [PATCH] Differentiate the alignment of the task structure in MPI and non-MPI worlds. --- src/task.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/task.h b/src/task.h index f3e04007fa..e596058cf4 100644 --- a/src/task.h +++ b/src/task.h @@ -29,7 +29,11 @@ #include "cell.h" #include "cycle.h" -#define task_align 32 +#ifdef WITH_MPI +#define task_align 128 +#else +#define task_align 64 +#endif /** * @brief The different task types. @@ -148,7 +152,7 @@ struct task { /*! Is this task implicit (i.e. does not do anything) ? */ char implicit; -} __attribute__((aligned(task_align))); +} __attribute__((aligned(32))); /* Function prototypes. */ void task_unlock(struct task *t); -- GitLab