Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
b64ddd03
Commit
b64ddd03
authored
Jun 08, 2007
by
Kurt Stockinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added MPI-IO for large block I/O + switch for COLLECTIVE/NON-COLLECTIVE IO.
parent
85383747
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
src/H5Part.c
src/H5Part.c
+31
-3
No files found.
src/H5Part.c
View file @
b64ddd03
...
...
@@ -159,6 +159,10 @@ _H5Part_open_file (
/* for the SP2... perhaps different for linux */
MPI_Info
info
=
MPI_INFO_NULL
;
/* ks: IBM_large_block_io */
MPI_Info_create
(
&
info
);
MPI_Info_set
(
info
,
"IBM_largeblock_io"
,
"true"
);
if
(
MPI_Comm_size
(
comm
,
&
f
->
nprocs
)
!=
MPI_SUCCESS
)
{
HANDLE_MPI_COMM_SIZE_ERR
;
goto
error_cleanup
;
...
...
@@ -204,6 +208,8 @@ _H5Part_open_file (
}
f
->
comm
=
comm
;
MPI_Info_free
(
&
info
);
#endif
}
else
{
f
->
comm
=
0
;
...
...
@@ -536,7 +542,7 @@ H5PartSetNumParticles (
/*
acquire the number of particles to be written from each MPI process
*/
--------
r
=
MPI_Allgather
(
&
nparticles
,
1
,
MPI_LONG_LONG
,
f
->
pnparticles
,
1
,
MPI_LONG_LONG
,
...
...
@@ -565,8 +571,6 @@ H5PartSetNumParticles (
total
+=
f
->
pnparticles
[
i
];
}
------------
/* declare overall datasize */
f
->
shape
=
H5Screate_simple
(
1
,
&
total
,
&
total
);
if
(
f
->
shape
<
0
)
return
HANDLE_H5S_CREATE_SIMPLE_ERR
(
total
);
...
...
@@ -622,6 +626,15 @@ _write_data (
if
(
dataset_id
<
0
)
return
HANDLE_H5D_CREATE_ERR
(
name
,
f
->
timestep
);
#ifdef COLLECTIVE_IO
herr
=
H5Dwrite
(
dataset_id
,
type
,
f
->
memshape
,
f
->
diskshape
,
f
->
xfer_prop
,
array
);
#else
herr
=
H5Dwrite
(
dataset_id
,
type
,
...
...
@@ -629,6 +642,8 @@ _write_data (
f
->
diskshape
,
H5P_DEFAULT
,
array
);
#endif
if
(
herr
<
0
)
return
HANDLE_H5D_WRITE_ERR
(
name
,
f
->
timestep
);
herr
=
H5Dclose
(
dataset_id
);
...
...
@@ -2166,6 +2181,7 @@ _read_data (
memspace_id
=
_get_memshape_for_reading
(
f
,
dataset_id
);
if
(
memspace_id
<
0
)
return
(
h5part_int64_t
)
memspace_id
;
#ifdef INDEPENDENT_IO
herr
=
H5Dread
(
dataset_id
,
type
,
...
...
@@ -2175,6 +2191,18 @@ _read_data (
(get hyperslab if needed) */
H5P_DEFAULT
,
/* ignore... its for parallel reads */
array
);
#else
herr
=
H5Dread
(
dataset_id
,
type
,
memspace_id
,
/* shape/size of data in memory (the
complement to disk hyperslab) */
space_id
,
/* shape/size of data on disk
(get hyperslab if needed) */
f
->
xfer_prop
,
/* ignore... its for parallel reads */
array
);
#endif
if
(
herr
<
0
)
return
HANDLE_H5D_READ_ERR
(
name
,
f
->
timestep
);
if
(
space_id
!=
H5S_ALL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment