|
@@ -60,7 +60,7 @@ static int malloc_on_node_default_flags[STARPU_MAXNODES];
|
|
|
|
|
|
/* This file is used for implementing "folded" allocation */
|
|
|
#ifdef STARPU_SIMGRID
|
|
|
-#if SIMGRID_VERSION < 31500
|
|
|
+#if SIMGRID_VERSION < 31500 || SIMGRID_VERSION == 31559
|
|
|
/* TODO: drop when simgrid 3.15 is reasonably largely used by people who need the feature */
|
|
|
static int bogusfile = -1;
|
|
|
static unsigned long _starpu_malloc_simulation_fold;
|
|
@@ -245,7 +245,7 @@ int _starpu_malloc_flags_on_node(unsigned dst_node, void **A, size_t dim, int fl
|
|
|
#ifdef STARPU_SIMGRID
|
|
|
if (flags & STARPU_MALLOC_SIMULATION_FOLDED)
|
|
|
{
|
|
|
-#if SIMGRID_VERSION >= 31500
|
|
|
+#if SIMGRID_VERSION >= 31500 && SIMGRID_VERSION != 31559
|
|
|
*A = SMPI_SHARED_MALLOC(dim);
|
|
|
#else
|
|
|
/* TODO: drop when simgrid 3.15 is reasonably largely used by people who need the feature */
|
|
@@ -494,7 +494,7 @@ int _starpu_free_flags_on_node(unsigned dst_node, void *A, size_t dim, int flags
|
|
|
#ifdef STARPU_SIMGRID
|
|
|
if (flags & STARPU_MALLOC_SIMULATION_FOLDED)
|
|
|
{
|
|
|
-#if SIMGRID_VERSION >= 31500
|
|
|
+#if SIMGRID_VERSION >= 31500 && SIMGRID_VERSION != 31559
|
|
|
SMPI_SHARED_FREE(A);
|
|
|
#else
|
|
|
/* TODO: drop when simgrid 3.15 is reasonably largely used by people who need the feature */
|
|
@@ -879,7 +879,7 @@ _starpu_malloc_init(unsigned dst_node)
|
|
|
disable_pinning = starpu_get_env_number("STARPU_DISABLE_PINNING");
|
|
|
malloc_on_node_default_flags[dst_node] = STARPU_MALLOC_PINNED | STARPU_MALLOC_COUNT;
|
|
|
#ifdef STARPU_SIMGRID
|
|
|
-#if SIMGRID_VERSION < 31500
|
|
|
+#if SIMGRID_VERSION < 31500 || SIMGRID_VERSION == 31559
|
|
|
/* Reasonably "costless" */
|
|
|
_starpu_malloc_simulation_fold = starpu_get_env_number_default("STARPU_MALLOC_SIMULATION_FOLD", 1) << 20;
|
|
|
#endif
|