Skip to content
Snippets Groups Projects
Commit 6c9d0947 authored by James Willis's avatar James Willis
Browse files

Changed the cell_max_tag to 2^29 to prevent MPI tag collisions.

parent 62727f47
No related branches found
No related tags found
2 merge requests!136Master,!82Fix MPI tag collision Issue #68
...@@ -29,7 +29,12 @@ struct space; ...@@ -29,7 +29,12 @@ struct space;
/* Some constants. */ /* Some constants. */
#define cell_sid_dt 13 #define cell_sid_dt 13
#define cell_max_tag (1 << 16)
/* Max tag size set to 2^29 to take into account some MPI implementations
* that use 2^31 as the upper bound on MPI tags and the fact that
* cell_next_tag is multiplied by 2 when passed to an MPI function.
* The maximum was lowered by a further factor of 2 to be on the safe side.*/
#define cell_max_tag (1 << 29)
/* Global variables. */ /* Global variables. */
extern int cell_next_tag; extern int cell_next_tag;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment