Skip to content
Snippets Groups Projects
Commit e25c7c7f authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Differentiate the alignment of the task structure in MPI and non-MPI worlds.

parent b0a3c8d6
No related branches found
No related tags found
1 merge request!238Pack the task types and re-arrange the task structure to go from 80 bytes to 64 bytes.
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment