From 9d92a61836189103d9fc1e6208404103bbf0c6da Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Fri, 27 Dec 2019 11:54:17 +0100 Subject: [PATCH] Also allow the writing of large spart and bpart arrays (>2GB / node) in parallel-io. --- src/parallel_io.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parallel_io.c b/src/parallel_io.c index 5b99855a7a..f073104e89 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -342,6 +342,8 @@ void readArray(hid_t grp, struct io_props props, size_t N, long long N_total, props.parts += max_chunk_size; /* part* on the part */ props.xparts += max_chunk_size; /* xpart* on the xpart */ props.gparts += max_chunk_size; /* gpart* on the gpart */ + props.sparts += max_chunk_size; /* spart* on the spart */ + props.bparts += max_chunk_size; /* bpart* on the bpart */ offset += max_chunk_size; redo = 1; } else { @@ -646,6 +648,8 @@ void writeArray(struct engine* e, hid_t grp, char* fileName, props.parts += max_chunk_size; /* part* on the part */ props.xparts += max_chunk_size; /* xpart* on the xpart */ props.gparts += max_chunk_size; /* gpart* on the gpart */ + props.sparts += max_chunk_size; /* spart* on the spart */ + props.bparts += max_chunk_size; /* bpart* on the bpart */ offset += max_chunk_size; redo = 1; } else { -- GitLab