Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
5613efe0
Commit
5613efe0
authored
5 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Make sure the mpi-i/o mode is switch on for the data writes in parallel_io.c
parent
2f652bbd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parallel_io.c
+10
-5
10 additions, 5 deletions
src/parallel_io.c
with
10 additions
and
5 deletions
src/parallel_io.c
+
10
−
5
View file @
5613efe0
...
...
@@ -555,10 +555,14 @@ void writeArray_chunk(struct engine* e, hid_t h_data,
else
H5Sselect_none
(
h_filespace
);
/* message("Writing %lld '%s', %zd elements = %zd bytes (int=%d) at offset
* %zd", N, props.name, N * props.dimension, N * props.dimension * typeSize,
*/
/* (int)(N * props.dimension * typeSize), offset); */
/* message("Writing %lld '%s', %zd elements = %zd bytes (int=%d) at offset
* %zd", N, props.name, N * props.dimension, N * props.dimension * typeSize,
*/
/* (int)(N * props.dimension * typeSize), offset); */
/* Make a dataset creation property list and set MPI-I/O mode */
hid_t
h_plist_id
=
H5Pcreate
(
H5P_DATASET_XFER
);
H5Pset_dxpl_mpio
(
h_plist_id
,
H5FD_MPIO_COLLECTIVE
);
#ifdef IO_SPEED_MEASUREMENT
MPI_Barrier
(
MPI_COMM_WORLD
);
...
...
@@ -567,7 +571,7 @@ void writeArray_chunk(struct engine* e, hid_t h_data,
/* Write temporary buffer to HDF5 dataspace */
h_err
=
H5Dwrite
(
h_data
,
io_hdf5_type
(
props
.
type
),
h_memspace
,
h_filespace
,
H5P_DEFAULT
,
temp
);
h_plist_id
,
temp
);
if
(
h_err
<
0
)
error
(
"Error while writing data array '%s'."
,
props
.
name
);
#ifdef IO_SPEED_MEASUREMENT
...
...
@@ -584,6 +588,7 @@ void writeArray_chunk(struct engine* e, hid_t h_data,
/* Free and close everything */
swift_free
(
"writebuff"
,
temp
);
H5Pclose
(
h_plist_id
);
H5Sclose
(
h_memspace
);
H5Sclose
(
h_filespace
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment