Skip to content

Commit

Permalink
Restore H5D_TEMP_BUF_SIZE; add H5Pset_preserve() to the test.
Browse files Browse the repository at this point in the history
  • Loading branch information
vchoi-hdfgroup committed Sep 14, 2023
1 parent c08c716 commit 3ec8346
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/H5Dprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
#endif /* H5_HAVE_INSTRUMENTED_LIBRARY */

/* Default temporary buffer size */
#define H5D_TEMP_BUF_SIZE (1024 * 2048)
#define H5D_TEMP_BUF_SIZE (1024 * 1024)

/* Default I/O vector size */
#define H5D_IO_VECTOR_SIZE 1024
Expand Down
2 changes: 1 addition & 1 deletion src/H5Mprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"key_alloc_size" /* Initial allocation size for keys prefetched during map iteration */

/* Default temporary buffer size */
#define H5D_TEMP_BUF_SIZE (1024 * 2048)
#define H5D_TEMP_BUF_SIZE (1024 * 1024)

/* Default I/O vector size */
#define H5D_IO_VECTOR_SIZE 1024
Expand Down
6 changes: 6 additions & 0 deletions test/cmpd_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,9 @@ test_select_dst_subset(char *fname, hid_t fapl, hid_t in_dxpl, unsigned set_fill
if ((did = H5Dcreate2(fid, DSET_NAME[2], src_tid, sid, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0)
goto error;

if (H5Pset_preserve(dxpl, true) < 0)
goto error;

/* Write to the dataset with rew_tid */
if (H5Dwrite(did, rew_tid, H5S_ALL, H5S_ALL, dxpl, rew_buf) < 0)
goto error;
Expand All @@ -564,6 +567,9 @@ test_select_dst_subset(char *fname, hid_t fapl, hid_t in_dxpl, unsigned set_fill

initialize_stype4(rew_buf, (size_t)NX * NY);

if (H5Pset_preserve(dxpl, true) < 0)
goto error;

/* Write data to the dataset with rew_tid */
if (H5Dwrite(did, rew_tid, H5S_ALL, H5S_ALL, dxpl, rew_buf) < 0)
goto error;
Expand Down

0 comments on commit 3ec8346

Please sign in to comment.