mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Switch parallel compression to use vector I/O (#3245)
Updates parallel compression feature to use vector I/O instead of creating and passing down MPI derived types to VFD
This commit is contained in:
parent
f62feaef31
commit
b1e07c74fd
1342
src/H5Dmpio.c
1342
src/H5Dmpio.c
File diff suppressed because it is too large
Load Diff
20
src/H5Fio.c
20
src/H5Fio.c
@ -328,8 +328,16 @@ H5F_shared_vector_read(H5F_shared_t *f_sh, uint32_t count, H5FD_mem_t types[], h
|
||||
* for now, assume the caller has done this already.
|
||||
*/
|
||||
#ifndef NDEBUG
|
||||
for (uint32_t i = 0; i < count; i++)
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
/* Break early if H5FD_MEM_NOLIST was specified
|
||||
* since a full 'count'-sized array may not
|
||||
* have been passed for 'types'
|
||||
*/
|
||||
if (i > 0 && types[i] == H5FD_MEM_NOLIST)
|
||||
break;
|
||||
|
||||
assert(types[i] != H5FD_MEM_GHEAP);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Pass down to file driver layer (bypass page buffer for now) */
|
||||
@ -373,8 +381,16 @@ H5F_shared_vector_write(H5F_shared_t *f_sh, uint32_t count, H5FD_mem_t types[],
|
||||
* for now, assume the caller has done this already.
|
||||
*/
|
||||
#ifndef NDEBUG
|
||||
for (uint32_t i = 0; i < count; i++)
|
||||
for (uint32_t i = 0; i < count; i++) {
|
||||
/* Break early if H5FD_MEM_NOLIST was specified
|
||||
* since a full 'count'-sized array may not
|
||||
* have been passed for 'types'
|
||||
*/
|
||||
if (i > 0 && types[i] == H5FD_MEM_NOLIST)
|
||||
break;
|
||||
|
||||
assert(types[i] != H5FD_MEM_GHEAP);
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Pass down to file driver layer (bypass page buffer for now) */
|
||||
|
Loading…
Reference in New Issue
Block a user