Browse Source

if available, use a space handling strategy to catch free spaces

Corentin Salingue 8 years ago
parent
commit
83568a44a1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/core/disk_ops/disk_hdf5.c

+ 4 - 0
src/core/disk_ops/disk_hdf5.c

@@ -470,6 +470,10 @@ static void *starpu_hdf5_plug(void *parameter, starpu_ssize_t size STARPU_ATTRIB
 	}
 #endif
 
+#if H5_VERS_MAJOR > 1 || (H5_VERS_MAJOR == 1 && H5_VERS_MINOR > 10) || (H5_VERS_MAJOR == 1 && H5_VERS_MINOR == 10 && H5_VERS_RELEASE > 0) 
+	H5Pset_file_space_strategy(fileBase->fileID, H5F_FSPACE_STRATEGY_FSM_AGGR, 0, 0);
+#endif
+
         _starpu_hdf5_protect_stop(fileBase);
 
         fileBase->next_dataset_id = 0;