summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-29 19:33:46 (GMT)
committerGitHub <noreply@github.com>2023-06-29 19:33:46 (GMT)
commit39e6bf48c92dda00057e2e19cdeed93f5a07b3c8 (patch)
tree7596e876fd008f38830d04591d49a0328208b0d1 /testpar
parentfd933f30b1f8cd487ad790ac0b054bb779280a62 (diff)
downloadhdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.zip
hdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.tar.gz
hdf5-39e6bf48c92dda00057e2e19cdeed93f5a07b3c8.tar.bz2
Remove HD from HDmem* calls (#3211)
Diffstat (limited to 'testpar')
-rw-r--r--testpar/API/t_bigio.c8
-rw-r--r--testpar/API/t_chunk_alloc.c6
-rw-r--r--testpar/API/t_coll_md_read.c6
-rw-r--r--testpar/API/t_dset.c4
-rw-r--r--testpar/API/t_file.c2
-rw-r--r--testpar/API/t_mdset.c4
-rw-r--r--testpar/API/t_shapesame.c30
-rw-r--r--testpar/API/t_span_tree.c10
-rw-r--r--testpar/API/testphdf5.c2
-rw-r--r--testpar/t_2Gio.c8
-rw-r--r--testpar/t_bigio.c8
-rw-r--r--testpar/t_cache.c4
-rw-r--r--testpar/t_chunk_alloc.c6
-rw-r--r--testpar/t_coll_md.c6
-rw-r--r--testpar/t_dset.c4
-rw-r--r--testpar/t_file.c2
-rw-r--r--testpar/t_filters_parallel.c123
-rw-r--r--testpar/t_mdset.c4
-rw-r--r--testpar/t_pmulti_dset.c10
-rw-r--r--testpar/t_select_io_dset.c104
-rw-r--r--testpar/t_shapesame.c30
-rw-r--r--testpar/t_span_tree.c10
-rw-r--r--testpar/t_subfiling_vfd.c4
-rw-r--r--testpar/t_vfd.c4
-rw-r--r--testpar/testphdf5.c2
25 files changed, 199 insertions, 202 deletions
diff --git a/testpar/API/t_bigio.c b/testpar/API/t_bigio.c
index 620712f..0184c3a 100644
--- a/testpar/API/t_bigio.c
+++ b/testpar/API/t_bigio.c
@@ -787,7 +787,7 @@ dataset_big_read(void)
wdata = (B_DATATYPE *)malloc(bigcount * sizeof(B_DATATYPE));
VRFY_G((wdata != NULL), "wdata malloc succeeded");
- HDmemset(rdata, 0, bigcount * sizeof(B_DATATYPE));
+ memset(rdata, 0, bigcount * sizeof(B_DATATYPE));
/* setup file access template */
acc_tpl = H5Pcreate(H5P_FILE_ACCESS);
@@ -867,7 +867,7 @@ dataset_big_read(void)
if (mpi_rank_g == 0)
printf("\nRead Testing Dataset2 by ROW\n");
- HDmemset(rdata, 0, bigcount * sizeof(B_DATATYPE));
+ memset(rdata, 0, bigcount * sizeof(B_DATATYPE));
dataset = H5Dopen2(fid, DATASET2, H5P_DEFAULT);
VRFY_G((dataset >= 0), "H5Dopen2 succeeded");
@@ -930,7 +930,7 @@ dataset_big_read(void)
if (mpi_rank_g == 0)
printf("\nRead Testing Dataset3 read select ALL proc 0, NONE others\n");
- HDmemset(rdata, 0, bigcount * sizeof(B_DATATYPE));
+ memset(rdata, 0, bigcount * sizeof(B_DATATYPE));
dataset = H5Dopen2(fid, DATASET3, H5P_DEFAULT);
VRFY_G((dataset >= 0), "H5Dopen2 succeeded");
@@ -1153,7 +1153,7 @@ single_rank_independent_io(void)
VRFY_G((ret >= 0), "H5Dwrite succeeded");
/* Wipe buffer */
- HDmemset(data, 0, dims[0] * sizeof(int));
+ memset(data, 0, dims[0] * sizeof(int));
/* Read data back */
ret = H5Dread(dset_id, H5T_NATIVE_INT, H5S_BLOCK, fspace_id, H5P_DEFAULT, data);
diff --git a/testpar/API/t_chunk_alloc.c b/testpar/API/t_chunk_alloc.c
index 8dd31e3..37ea2fa 100644
--- a/testpar/API/t_chunk_alloc.c
+++ b/testpar/API/t_chunk_alloc.c
@@ -112,7 +112,7 @@ create_chunked_dataset(const char *filename, int chunk_factor, write_type write_
VRFY((dataset >= 0), "");
if (write_pattern == sec_last) {
- HDmemset(buffer, 100, CHUNK_SIZE);
+ memset(buffer, 100, CHUNK_SIZE);
count[0] = 1;
stride[0] = 1;
@@ -238,7 +238,7 @@ parallel_access_dataset(const char *filename, int chunk_factor, access_type acti
/* all chunks are written by all the processes in an interleaved way*/
case write_all:
- HDmemset(buffer, mpi_rank + 1, CHUNK_SIZE);
+ memset(buffer, mpi_rank + 1, CHUNK_SIZE);
count[0] = 1;
stride[0] = 1;
block[0] = chunk_dims[0];
@@ -372,7 +372,7 @@ verify_data(const char *filename, int chunk_factor, write_type write_pattern, in
block[0] = chunk_dims[0];
for (i = 0; i < nchunks; i++) {
/* reset buffer values */
- HDmemset(buffer, -1, CHUNK_SIZE);
+ memset(buffer, -1, CHUNK_SIZE);
offset[0] = (hsize_t)i * chunk_dims[0];
diff --git a/testpar/API/t_coll_md_read.c b/testpar/API/t_coll_md_read.c
index 805e2b7..0b019c1 100644
--- a/testpar/API/t_coll_md_read.c
+++ b/testpar/API/t_coll_md_read.c
@@ -205,9 +205,9 @@ test_partial_no_selection_coll_md_read(void)
* Check data integrity just to be sure.
*/
if (!PARTIAL_NO_SELECTION_NO_SEL_PROCESS) {
- VRFY((!HDmemcmp(data, read_buf,
- count[1] * (PARTIAL_NO_SELECTION_Y_DIM_SCALE * PARTIAL_NO_SELECTION_X_DIM_SCALE) *
- sizeof(int))),
+ VRFY((!memcmp(data, read_buf,
+ count[1] * (PARTIAL_NO_SELECTION_Y_DIM_SCALE * PARTIAL_NO_SELECTION_X_DIM_SCALE) *
+ sizeof(int))),
"memcmp succeeded");
}
diff --git a/testpar/API/t_dset.c b/testpar/API/t_dset.c
index 984e770..14f9233 100644
--- a/testpar/API/t_dset.c
+++ b/testpar/API/t_dset.c
@@ -3821,11 +3821,11 @@ test_no_collective_cause_mode(int selection_mode)
"reading and writing are the same for global cause of Broken Collective I/O");
/* Test values */
- HDmemset(message, 0, sizeof(message));
+ memset(message, 0, sizeof(message));
HDsnprintf(message, sizeof(message),
"Local cause of Broken Collective I/O has the correct value for %s.\n", test_name);
VRFY((no_collective_cause_local_write == no_collective_cause_local_expected), message);
- HDmemset(message, 0, sizeof(message));
+ memset(message, 0, sizeof(message));
HDsnprintf(message, sizeof(message),
"Global cause of Broken Collective I/O has the correct value for %s.\n", test_name);
VRFY((no_collective_cause_global_write == no_collective_cause_global_expected), message);
diff --git a/testpar/API/t_file.c b/testpar/API/t_file.c
index 3c1247f..ccd4e6e 100644
--- a/testpar/API/t_file.c
+++ b/testpar/API/t_file.c
@@ -557,7 +557,7 @@ create_file(const char *filename, hid_t fcpl, hid_t fapl, int metadata_write_str
ret = H5Dclose(dset_id);
VRFY((ret == 0), "");
- HDmemset(data_array, 0, num_elements * sizeof(DATATYPE));
+ memset(data_array, 0, num_elements * sizeof(DATATYPE));
dset_id = H5Dopen2(grp_id, dset_name, H5P_DEFAULT);
VRFY((dset_id >= 0), "");
diff --git a/testpar/API/t_mdset.c b/testpar/API/t_mdset.c
index e0e1c07..cc49e7b 100644
--- a/testpar/API/t_mdset.c
+++ b/testpar/API/t_mdset.c
@@ -730,7 +730,7 @@ dataset_fillvalue(void)
VRFY((ret >= 0), "H5Pset_dxpl_mpio succeeded");
/* set entire read buffer with the constant 2 */
- HDmemset(rdata, 2, (size_t)(dset_size * sizeof(int)));
+ memset(rdata, 2, (size_t)(dset_size * sizeof(int)));
/* Read the entire dataset back */
ret = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, dxpl, rdata);
@@ -820,7 +820,7 @@ dataset_fillvalue(void)
VRFY((ret >= 0), "H5Pset_dxpl_mpio succeeded");
/* set entire read buffer with the constant 2 */
- HDmemset(rdata, 2, (size_t)(dset_size * sizeof(int)));
+ memset(rdata, 2, (size_t)(dset_size * sizeof(int)));
/* Read the entire dataset back */
ret = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, dxpl, rdata);
diff --git a/testpar/API/t_shapesame.c b/testpar/API/t_shapesame.c
index 443a7e0..621c336 100644
--- a/testpar/API/t_shapesame.c
+++ b/testpar/API/t_shapesame.c
@@ -236,18 +236,18 @@ hs_dr_pio_test__setup(const int test_num, const int edge_size, const int checker
ptr_0 = tv_ptr->small_ds_buf_0;
for (i = 0; i < (int)(tv_ptr->small_ds_size); i++)
*ptr_0++ = (uint32_t)i;
- HDmemset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
- HDmemset(tv_ptr->small_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
- HDmemset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
+ memset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
ptr_0 = tv_ptr->large_ds_buf_0;
for (i = 0; i < (int)(tv_ptr->large_ds_size); i++)
*ptr_0++ = (uint32_t)i;
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
- HDmemset(tv_ptr->large_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
- HDmemset(tv_ptr->large_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->large_ds_slice_size);
+ memset(tv_ptr->large_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->large_ds_slice_size);
filename = filenames[0]; /* (const char *)GetTestParameters(); */
assert(filename != NULL);
@@ -738,7 +738,7 @@ contig_hs_dr_pio_test__d2m_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the buffer we will be reading into */
- HDmemset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
+ memset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
#if CONTIG_HS_DR_PIO_TEST__D2M_L2S__DEBUG
fprintf(stdout, "%s reading slices from big cube on disk into small cube slice.\n", fcnName);
@@ -951,7 +951,7 @@ contig_hs_dr_pio_test__d2m_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
#endif /* CONTIG_HS_DR_PIO_TEST__D2M_S2L__DEBUG */
/* zero out the in memory large ds */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
/* set up start, stride, count, and block -- note that we will
* change start[] so as to read slices of the large cube.
@@ -1220,7 +1220,7 @@ contig_hs_dr_pio_test__m2d_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory small ds */
- HDmemset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
#if CONTIG_HS_DR_PIO_TEST__M2D_L2S__DEBUG
fprintf(stdout, "%s writing slices from big ds to slices of small ds on disk.\n", fcnName);
@@ -1493,7 +1493,7 @@ contig_hs_dr_pio_test__m2d_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory large ds */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
#if CONTIG_HS_DR_PIO_TEST__M2D_S2L__DEBUG
fprintf(stdout, "%s writing process slices of small ds to slices of large ds on disk.\n", fcnName);
@@ -2578,7 +2578,7 @@ ckrbrd_hs_dr_pio_test__d2m_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
sel_start);
/* zero out the buffer we will be reading into */
- HDmemset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
+ memset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
#if CHECKER_BOARD_HS_DR_PIO_TEST__D2M_L2S__DEBUG
fprintf(stdout, "%s:%d: initial small_ds_slice_buf = ", fcnName, tv_ptr->mpi_rank);
@@ -2810,7 +2810,7 @@ ckrbrd_hs_dr_pio_test__d2m_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
#endif /* CHECKER_BOARD_HS_DR_PIO_TEST__D2M_S2L__DEBUG */
/* zero out the buffer we will be reading into */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
/* set up start, stride, count, and block -- note that we will
* change start[] so as to read the slice of the small data set
@@ -3134,7 +3134,7 @@ ckrbrd_hs_dr_pio_test__m2d_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory small ds */
- HDmemset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
#if CHECKER_BOARD_HS_DR_PIO_TEST__M2D_L2S__DEBUG
fprintf(stdout,
@@ -3431,7 +3431,7 @@ ckrbrd_hs_dr_pio_test__m2d_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory large ds */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
#if CHECKER_BOARD_HS_DR_PIO_TEST__M2D_S2L__DEBUG
fprintf(stdout,
@@ -4334,7 +4334,7 @@ main(int argc, char **argv)
}
#if 0
- HDmemset(filenames, 0, sizeof(filenames));
+ memset(filenames, 0, sizeof(filenames));
for (int i = 0; i < NFILENAME; i++) {
if (NULL == (filenames[i] = malloc(PATH_MAX))) {
printf("couldn't allocate filename array\n");
diff --git a/testpar/API/t_span_tree.c b/testpar/API/t_span_tree.c
index d57392a..b66b72c 100644
--- a/testpar/API/t_span_tree.c
+++ b/testpar/API/t_span_tree.c
@@ -320,7 +320,7 @@ coll_write_test(int chunk_factor)
matrix_out = (int *)malloc(sizeof(int) * (size_t)mdim[0] * (size_t)mdim[1] * (size_t)mpi_size);
matrix_out1 = (int *)malloc(sizeof(int) * (size_t)mdim[0] * (size_t)mdim[1] * (size_t)mpi_size);
- HDmemset(vector, 0, sizeof(int) * (size_t)mdim1[0] * (size_t)mpi_size);
+ memset(vector, 0, sizeof(int) * (size_t)mdim1[0] * (size_t)mpi_size);
vector[0] = vector[MSPACE1_DIM * mpi_size - 1] = -1;
for (i = 1; i < MSPACE1_DIM * mpi_size - 1; i++)
vector[i] = (int)i;
@@ -643,8 +643,8 @@ coll_write_test(int chunk_factor)
* Initialize data buffer.
*/
- HDmemset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
- HDmemset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
/*
* Read data back to the buffer matrix_out.
*/
@@ -881,8 +881,8 @@ coll_read_test(void)
* Initialize data buffer.
*/
- HDmemset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
- HDmemset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
/*
* Read data back to the buffer matrix_out.
diff --git a/testpar/API/testphdf5.c b/testpar/API/testphdf5.c
index 044ebac..9469c12 100644
--- a/testpar/API/testphdf5.c
+++ b/testpar/API/testphdf5.c
@@ -351,7 +351,7 @@ main(int argc, char **argv)
/* h5_show_hostname(); */
#if 0
- HDmemset(filenames, 0, sizeof(filenames));
+ memset(filenames, 0, sizeof(filenames));
for (int i = 0; i < NFILENAME; i++) {
if (NULL == (filenames[i] = malloc(PATH_MAX))) {
printf("couldn't allocate filename array\n");
diff --git a/testpar/t_2Gio.c b/testpar/t_2Gio.c
index 8ab13bf..e651b1b 100644
--- a/testpar/t_2Gio.c
+++ b/testpar/t_2Gio.c
@@ -4134,11 +4134,11 @@ test_no_collective_cause_mode(int selection_mode)
"reading and writing are the same for global cause of Broken Collective I/O");
/* Test values */
- HDmemset(message, 0, sizeof(message));
+ memset(message, 0, sizeof(message));
HDsnprintf(message, sizeof(message),
"Local cause of Broken Collective I/O has the correct value for %s.\n", test_name);
VRFY((no_collective_cause_local_write == no_collective_cause_local_expected), message);
- HDmemset(message, 0, sizeof(message));
+ memset(message, 0, sizeof(message));
HDsnprintf(message, sizeof(message),
"Global cause of Broken Collective I/O has the correct value for %s.\n", test_name);
VRFY((no_collective_cause_global_write == no_collective_cause_global_expected), message);
@@ -4616,7 +4616,7 @@ main(int argc, char **argv)
MPI_Comm_size(test_comm, &mpi_size);
MPI_Comm_rank(test_comm, &mpi_rank);
- HDmemset(filenames, 0, sizeof(filenames));
+ memset(filenames, 0, sizeof(filenames));
dim0 = BIG_X_FACTOR;
dim1 = BIG_Y_FACTOR;
@@ -4635,7 +4635,7 @@ main(int argc, char **argv)
};
H5open();
- HDmemset(filenames, 0, sizeof(filenames));
+ memset(filenames, 0, sizeof(filenames));
for (int i = 0; i < NFILENAME; i++) {
if (NULL == (filenames[i] = malloc(PATH_MAX))) {
printf("couldn't allocate filename array\n");
diff --git a/testpar/t_bigio.c b/testpar/t_bigio.c
index ef36f3e..49c39e4 100644
--- a/testpar/t_bigio.c
+++ b/testpar/t_bigio.c
@@ -784,7 +784,7 @@ dataset_big_read(void)
wdata = (B_DATATYPE *)malloc(bigcount * sizeof(B_DATATYPE));
VRFY_G((wdata != NULL), "wdata malloc succeeded");
- HDmemset(rdata, 0, bigcount * sizeof(B_DATATYPE));
+ memset(rdata, 0, bigcount * sizeof(B_DATATYPE));
/* setup file access template */
acc_tpl = H5Pcreate(H5P_FILE_ACCESS);
@@ -864,7 +864,7 @@ dataset_big_read(void)
if (mpi_rank_g == 0)
printf("\nRead Testing Dataset2 by ROW\n");
- HDmemset(rdata, 0, bigcount * sizeof(B_DATATYPE));
+ memset(rdata, 0, bigcount * sizeof(B_DATATYPE));
dataset = H5Dopen2(fid, DATASET2, H5P_DEFAULT);
VRFY_G((dataset >= 0), "H5Dopen2 succeeded");
@@ -927,7 +927,7 @@ dataset_big_read(void)
if (mpi_rank_g == 0)
printf("\nRead Testing Dataset3 read select ALL proc 0, NONE others\n");
- HDmemset(rdata, 0, bigcount * sizeof(B_DATATYPE));
+ memset(rdata, 0, bigcount * sizeof(B_DATATYPE));
dataset = H5Dopen2(fid, DATASET3, H5P_DEFAULT);
VRFY_G((dataset >= 0), "H5Dopen2 succeeded");
@@ -1150,7 +1150,7 @@ single_rank_independent_io(void)
VRFY_G((ret >= 0), "H5Dwrite succeeded");
/* Wipe buffer */
- HDmemset(data, 0, dims[0] * sizeof(int));
+ memset(data, 0, dims[0] * sizeof(int));
/* Read data back */
ret = H5Dread(dset_id, H5T_NATIVE_INT, H5S_BLOCK, fspace_id, H5P_DEFAULT, data);
diff --git a/testpar/t_cache.c b/testpar/t_cache.c
index c3189b1..d6768bd 100644
--- a/testpar/t_cache.c
+++ b/testpar/t_cache.c
@@ -1073,7 +1073,7 @@ setup_derived_types(void)
MPI_Aint displs[9];
struct mssg_t sample; /* used to compute displacements */
- HDmemset(&sample, 0, sizeof(struct mssg_t));
+ memset(&sample, 0, sizeof(struct mssg_t));
/* setup the displacements array */
if ((MPI_SUCCESS != MPI_Get_address(&sample.req, &displs[0])) ||
@@ -6713,7 +6713,7 @@ main(int argc, char **argv)
MPI_Abort(MPI_COMM_WORLD, -1);
}
- HDmemset(filenames, 0, sizeof(filenames));
+ memset(filenames, 0, sizeof(filenames));
for (int i = 0; i < NFILENAME; i++) {
if (NULL == (filenames[i] = malloc(PATH_MAX))) {
printf("couldn't allocate filename array\n");
diff --git a/testpar/t_chunk_alloc.c b/testpar/t_chunk_alloc.c
index c8d20b5..6f862c0 100644
--- a/testpar/t_chunk_alloc.c
+++ b/testpar/t_chunk_alloc.c
@@ -109,7 +109,7 @@ create_chunked_dataset(const char *filename, int chunk_factor, write_type write_
VRFY((dataset >= 0), "");
if (write_pattern == sec_last) {
- HDmemset(buffer, 100, CHUNK_SIZE);
+ memset(buffer, 100, CHUNK_SIZE);
count[0] = 1;
stride[0] = 1;
@@ -226,7 +226,7 @@ parallel_access_dataset(const char *filename, int chunk_factor, access_type acti
/* all chunks are written by all the processes in an interleaved way*/
case write_all:
- HDmemset(buffer, mpi_rank + 1, CHUNK_SIZE);
+ memset(buffer, mpi_rank + 1, CHUNK_SIZE);
count[0] = 1;
stride[0] = 1;
block[0] = chunk_dims[0];
@@ -358,7 +358,7 @@ verify_data(const char *filename, int chunk_factor, write_type write_pattern, in
block[0] = chunk_dims[0];
for (i = 0; i < nchunks; i++) {
/* reset buffer values */
- HDmemset(buffer, -1, CHUNK_SIZE);
+ memset(buffer, -1, CHUNK_SIZE);
offset[0] = (hsize_t)i * chunk_dims[0];
diff --git a/testpar/t_coll_md.c b/testpar/t_coll_md.c
index 2ff6f77..b6442a5 100644
--- a/testpar/t_coll_md.c
+++ b/testpar/t_coll_md.c
@@ -191,9 +191,9 @@ test_partial_no_selection_coll_md_read(void)
* Check data integrity just to be sure.
*/
if (!PARTIAL_NO_SELECTION_NO_SEL_PROCESS) {
- VRFY((!HDmemcmp(data, read_buf,
- count[1] * (PARTIAL_NO_SELECTION_Y_DIM_SCALE * PARTIAL_NO_SELECTION_X_DIM_SCALE) *
- sizeof(int))),
+ VRFY((!memcmp(data, read_buf,
+ count[1] * (PARTIAL_NO_SELECTION_Y_DIM_SCALE * PARTIAL_NO_SELECTION_X_DIM_SCALE) *
+ sizeof(int))),
"memcmp succeeded");
}
diff --git a/testpar/t_dset.c b/testpar/t_dset.c
index 9c72108..e401cd5 100644
--- a/testpar/t_dset.c
+++ b/testpar/t_dset.c
@@ -3725,11 +3725,11 @@ test_no_collective_cause_mode(int selection_mode)
"reading and writing are the same for global cause of Broken Collective I/O");
/* Test values */
- HDmemset(message, 0, sizeof(message));
+ memset(message, 0, sizeof(message));
HDsnprintf(message, sizeof(message),
"Local cause of Broken Collective I/O has the correct value for %s.\n", test_name);
VRFY((no_collective_cause_local_write == no_collective_cause_local_expected), message);
- HDmemset(message, 0, sizeof(message));
+ memset(message, 0, sizeof(message));
HDsnprintf(message, sizeof(message),
"Global cause of Broken Collective I/O has the correct value for %s.\n", test_name);
VRFY((no_collective_cause_global_write == no_collective_cause_global_expected), message);
diff --git a/testpar/t_file.c b/testpar/t_file.c
index 3c410dc..69d0562 100644
--- a/testpar/t_file.c
+++ b/testpar/t_file.c
@@ -542,7 +542,7 @@ create_file(const char *filename, hid_t fcpl, hid_t fapl, int metadata_write_str
ret = H5Dclose(dset_id);
VRFY((ret == 0), "");
- HDmemset(data_array, 0, num_elements * sizeof(DATATYPE));
+ memset(data_array, 0, num_elements * sizeof(DATATYPE));
dset_id = H5Dopen2(grp_id, dset_name, H5P_DEFAULT);
VRFY((dset_id >= 0), "");
diff --git a/testpar/t_filters_parallel.c b/testpar/t_filters_parallel.c
index 16856bd..d5042b3 100644
--- a/testpar/t_filters_parallel.c
+++ b/testpar/t_filters_parallel.c
@@ -522,7 +522,7 @@ test_write_one_chunk_filtered_dataset(const char *parent_group, H5Z_filter_t fil
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -673,7 +673,7 @@ test_write_filtered_dataset_no_overlap(const char *parent_group, H5Z_filter_t fi
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -829,7 +829,7 @@ test_write_filtered_dataset_no_overlap_partial(const char *parent_group, H5Z_fil
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -981,7 +981,7 @@ test_write_filtered_dataset_overlap(const char *parent_group, H5Z_filter_t filte
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -1119,13 +1119,13 @@ test_write_filtered_dataset_single_unlim_dim_no_overlap(const char *parent_group
dset_id = H5Dopen2(group_id, WRITE_UNSHARED_ONE_UNLIM_DIM_DATASET_NAME, H5P_DEFAULT);
VRFY((dset_id >= 0), "Dataset open succeeded");
- HDmemset(read_buf, 255, data_size);
+ memset(read_buf, 255, data_size);
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
/* Verify the correct data was written */
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
if (i < (size_t)WRITE_UNSHARED_ONE_UNLIM_DIM_NLOOPS - 1) {
/* Extend the dataset by count[1] chunks in the extensible dimension */
@@ -1272,13 +1272,13 @@ test_write_filtered_dataset_single_unlim_dim_overlap(const char *parent_group, H
dset_id = H5Dopen2(group_id, WRITE_SHARED_ONE_UNLIM_DIM_DATASET_NAME, H5P_DEFAULT);
VRFY((dset_id >= 0), "Dataset open succeeded");
- HDmemset(read_buf, 255, data_size);
+ memset(read_buf, 255, data_size);
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
/* Verify correct data was written */
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
if (i < (size_t)WRITE_SHARED_ONE_UNLIM_DIM_NLOOPS - 1) {
/* Extend the dataset by count[1] chunks in the extensible dimension */
@@ -1436,13 +1436,13 @@ test_write_filtered_dataset_multi_unlim_dim_no_overlap(const char *parent_group,
dset_id = H5Dopen2(group_id, WRITE_UNSHARED_TWO_UNLIM_DIM_DATASET_NAME, H5P_DEFAULT);
VRFY((dset_id >= 0), "Dataset open succeeded");
- HDmemset(read_buf, 255, data_size);
+ memset(read_buf, 255, data_size);
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
/* Verify the correct data was written */
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
if (i < (size_t)WRITE_UNSHARED_TWO_UNLIM_DIM_NLOOPS - 1) {
/*
@@ -1603,13 +1603,13 @@ test_write_filtered_dataset_multi_unlim_dim_overlap(const char *parent_group, H5
dset_id = H5Dopen2(group_id, WRITE_SHARED_TWO_UNLIM_DIM_DATASET_NAME, H5P_DEFAULT);
VRFY((dset_id >= 0), "Dataset open succeeded");
- HDmemset(read_buf, 255, data_size);
+ memset(read_buf, 255, data_size);
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
/* Verify correct data was written */
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
if (i < (size_t)WRITE_SHARED_TWO_UNLIM_DIM_NLOOPS - 1) {
/* Extend the dataset by the size of a chunk in each extensible dimension */
@@ -1764,9 +1764,8 @@ test_write_filtered_dataset_single_no_selection(const char *parent_group, H5Z_fi
/* Compute the correct offset into the buffer for the process having no selection and clear it */
segment_length = dataset_dims[0] * dataset_dims[1] / (hsize_t)mpi_size;
- HDmemset(correct_buf +
- ((size_t)WRITE_SINGLE_NO_SELECTION_FILTERED_CHUNKS_NO_SELECT_PROC * segment_length),
- 0, segment_length * sizeof(*data));
+ memset(correct_buf + ((size_t)WRITE_SINGLE_NO_SELECTION_FILTERED_CHUNKS_NO_SELECT_PROC * segment_length),
+ 0, segment_length * sizeof(*data));
VRFY((H5Dwrite(dset_id, HDF5_DATATYPE_NAME, memspace, filespace, dxpl_id, data) >= 0),
"Dataset write succeeded");
@@ -1789,7 +1788,7 @@ test_write_filtered_dataset_single_no_selection(const char *parent_group, H5Z_fi
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -1912,7 +1911,7 @@ test_write_filtered_dataset_all_no_selection(const char *parent_group, H5Z_filte
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -2052,7 +2051,7 @@ test_write_filtered_dataset_point_selection(const char *parent_group, H5Z_filter
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (coords)
free(coords);
@@ -2218,7 +2217,7 @@ test_write_filtered_dataset_interleaved_write(const char *parent_group, H5Z_filt
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -2381,7 +2380,7 @@ test_write_transformed_filtered_dataset_no_overlap(const char *parent_group, H5Z
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, plist_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
VRFY((H5Pclose(plist_id) >= 0), "DCPL close succeeded");
@@ -2547,7 +2546,7 @@ test_write_3d_filtered_dataset_no_overlap_separate_pages(const char *parent_grou
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -2708,7 +2707,7 @@ test_write_3d_filtered_dataset_no_overlap_same_pages(const char *parent_group, H
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -2881,7 +2880,7 @@ test_write_3d_filtered_dataset_overlap(const char *parent_group, H5Z_filter_t fi
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -3059,7 +3058,7 @@ test_write_cmpd_filtered_dataset_no_conversion_unshared(const char *parent_group
VRFY((H5Dread(dset_id, memtype, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0), "Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -3244,7 +3243,7 @@ test_write_cmpd_filtered_dataset_no_conversion_shared(const char *parent_group,
VRFY((H5Dread(dset_id, memtype, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0), "Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -3440,7 +3439,7 @@ test_write_cmpd_filtered_dataset_type_conversion_unshared(const char *parent_gro
VRFY((H5Dread(dset_id, memtype, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0), "Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -3637,7 +3636,7 @@ test_write_cmpd_filtered_dataset_type_conversion_shared(const char *parent_group
VRFY((H5Dread(dset_id, memtype, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0), "Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -3834,7 +3833,7 @@ test_read_one_chunk_filtered_dataset(const char *parent_group, H5Z_filter_t filt
displs, C_DATATYPE_MPI, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -4032,7 +4031,7 @@ test_read_filtered_dataset_no_overlap(const char *parent_group, H5Z_filter_t fil
displs, C_DATATYPE_MPI, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -4248,7 +4247,7 @@ test_read_filtered_dataset_overlap(const char *parent_group, H5Z_filter_t filter
}
}
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -4322,8 +4321,8 @@ test_read_filtered_dataset_single_no_selection(const char *parent_group, H5Z_fil
/* Compute the correct offset into the buffer for the process having no selection and clear it */
segment_length = dataset_dims[0] * dataset_dims[1] / (hsize_t)mpi_size;
- HDmemset(correct_buf + ((size_t)READ_SINGLE_NO_SELECTION_FILTERED_CHUNKS_NO_SELECT_PROC * segment_length),
- 0, segment_length * sizeof(*correct_buf));
+ memset(correct_buf + ((size_t)READ_SINGLE_NO_SELECTION_FILTERED_CHUNKS_NO_SELECT_PROC * segment_length),
+ 0, segment_length * sizeof(*correct_buf));
if (MAINPROCESS) {
plist_id = H5Pcreate(H5P_FILE_ACCESS);
@@ -4474,7 +4473,7 @@ test_read_filtered_dataset_single_no_selection(const char *parent_group, H5Z_fil
recvcounts, displs, C_DATATYPE_MPI, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -4615,7 +4614,7 @@ test_read_filtered_dataset_all_no_selection(const char *parent_group, H5Z_filter
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, memspace, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (read_buf)
free(read_buf);
@@ -4816,7 +4815,7 @@ test_read_filtered_dataset_point_selection(const char *parent_group, H5Z_filter_
}
}
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -5047,7 +5046,7 @@ test_read_filtered_dataset_interleaved_read(const char *parent_group, H5Z_filter
}
}
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -5258,7 +5257,7 @@ test_read_3d_filtered_dataset_no_overlap_separate_pages(const char *parent_group
resized_vector_type, comm)),
"MPI_Allgather succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
VRFY((MPI_SUCCESS == MPI_Type_free(&vector_type)), "MPI_Type_free succeeded");
VRFY((MPI_SUCCESS == MPI_Type_free(&resized_vector_type)), "MPI_Type_free succeeded");
@@ -5485,7 +5484,7 @@ test_read_transformed_filtered_dataset_no_overlap(const char *parent_group, H5Z_
displs, C_DATATYPE_MPI, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -5695,7 +5694,7 @@ test_read_3d_filtered_dataset_no_overlap_same_pages(const char *parent_group, H5
displs, C_DATATYPE_MPI, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -5927,7 +5926,7 @@ test_read_3d_filtered_dataset_overlap(const char *parent_group, H5Z_filter_t fil
resized_vector_type, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
VRFY((MPI_SUCCESS == MPI_Type_free(&vector_type)), "MPI_Type_free succeeded");
VRFY((MPI_SUCCESS == MPI_Type_free(&resized_vector_type)), "MPI_Type_free succeeded");
@@ -6150,7 +6149,7 @@ test_read_cmpd_filtered_dataset_no_conversion_unshared(const char *parent_group,
global_buf, recvcounts, displs, MPI_BYTE, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -6381,7 +6380,7 @@ test_read_cmpd_filtered_dataset_no_conversion_shared(const char *parent_group, H
global_buf, recvcounts, displs, MPI_BYTE, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -6614,7 +6613,7 @@ test_read_cmpd_filtered_dataset_type_conversion_unshared(const char *parent_grou
global_buf, recvcounts, displs, MPI_BYTE, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -6854,7 +6853,7 @@ test_read_cmpd_filtered_dataset_type_conversion_shared(const char *parent_group,
global_buf, recvcounts, displs, MPI_BYTE, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(global_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (displs)
free(displs);
@@ -6997,7 +6996,7 @@ test_write_serial_read_parallel(const char *parent_group, H5Z_filter_t filter_id
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
if (correct_buf)
free(correct_buf);
@@ -7175,7 +7174,7 @@ test_write_parallel_read_serial(const char *parent_group, H5Z_filter_t filter_id
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_ALL, H5S_ALL, H5P_DEFAULT, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, correct_buf_size)), "Data verification succeeded");
VRFY((H5Dclose(dset_id) >= 0), "Dataset close succeeded");
VRFY((H5Gclose(group_id) >= 0), "Group close succeeded");
@@ -7293,7 +7292,7 @@ test_shrinking_growing_chunks(const char *parent_group, H5Z_filter_t filter_id,
for (i = 0; i < SHRINKING_GROWING_CHUNKS_NLOOPS; i++) {
/* Continually write random float data, followed by zeroed-out data */
if (i % 2)
- HDmemset(data, 0, data_size);
+ memset(data, 0, data_size);
else {
size_t j;
for (j = 0; j < data_size / sizeof(*data); j++) {
@@ -7308,16 +7307,16 @@ test_shrinking_growing_chunks(const char *parent_group, H5Z_filter_t filter_id,
verify_space_alloc_status(dset_id, plist_id, ALL_CHUNKS_WRITTEN);
if (i % 2) {
- HDmemset(read_buf, 255, data_size);
+ memset(read_buf, 255, data_size);
}
else {
- HDmemset(read_buf, 0, data_size);
+ memset(read_buf, 0, data_size);
}
VRFY((H5Dread(dset_id, H5T_NATIVE_DOUBLE, memspace, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "data verification succeeded");
}
if (read_buf)
@@ -7457,7 +7456,7 @@ test_edge_chunks_no_overlap(const char *parent_group, H5Z_filter_t filter_id, hi
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
VRFY((H5Dclose(dset_id) >= 0), "Dataset close succeeded");
@@ -7516,12 +7515,12 @@ test_edge_chunks_no_overlap(const char *parent_group, H5Z_filter_t filter_id, hi
dset_id = H5Dopen2(group_id, WRITE_UNSHARED_FILTERED_EDGE_CHUNKS_DATASET_NAME2, H5P_DEFAULT);
VRFY((dset_id >= 0), "Dataset open succeeded");
- HDmemset(read_buf, 255, data_size);
+ memset(read_buf, 255, data_size);
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
if (data)
free(data);
@@ -7660,7 +7659,7 @@ test_edge_chunks_overlap(const char *parent_group, H5Z_filter_t filter_id, hid_t
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
VRFY((H5Dclose(dset_id) >= 0), "Dataset close succeeded");
@@ -7720,12 +7719,12 @@ test_edge_chunks_overlap(const char *parent_group, H5Z_filter_t filter_id, hid_t
dset_id = H5Dopen2(group_id, WRITE_SHARED_FILTERED_EDGE_CHUNKS_DATASET_NAME2, H5P_DEFAULT);
VRFY((dset_id >= 0), "Dataset open succeeded");
- HDmemset(read_buf, 255, data_size);
+ memset(read_buf, 255, data_size);
VRFY((H5Dread(dset_id, HDF5_DATATYPE_NAME, H5S_BLOCK, filespace, dxpl_id, read_buf) >= 0),
"Dataset read succeeded");
- VRFY((0 == HDmemcmp(read_buf, data, data_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, data, data_size)), "Data verification succeeded");
if (data)
free(data);
@@ -7845,7 +7844,7 @@ test_fill_values(const char *parent_group, H5Z_filter_t filter_id, hid_t fapl_id
for (i = 0; i < read_buf_size / sizeof(*read_buf); i++)
correct_buf[i] = FILL_VALUES_TEST_FILL_VAL;
- VRFY((0 == HDmemcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
/*
* Write to part of the first chunk in the dataset with
@@ -7921,7 +7920,7 @@ test_fill_values(const char *parent_group, H5Z_filter_t filter_id, hid_t fapl_id
displs, C_DATATYPE_MPI, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
/*
* Write to whole dataset and ensure fill value isn't returned
@@ -7993,7 +7992,7 @@ test_fill_values(const char *parent_group, H5Z_filter_t filter_id, hid_t fapl_id
for (i = 0; i < read_buf_size / sizeof(*read_buf); i++)
correct_buf[i] = FILL_VALUES_TEST_FILL_VAL;
- VRFY((0 == HDmemcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
/*
* Write to part of the first chunk in the dataset with
@@ -8057,7 +8056,7 @@ test_fill_values(const char *parent_group, H5Z_filter_t filter_id, hid_t fapl_id
displs, C_DATATYPE_MPI, comm)),
"MPI_Allgatherv succeeded");
- VRFY((0 == HDmemcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
+ VRFY((0 == memcmp(read_buf, correct_buf, read_buf_size)), "Data verification succeeded");
/*
* Write to whole dataset and ensure fill value isn't returned
@@ -8436,7 +8435,7 @@ test_fill_time_never(const char *parent_group, H5Z_filter_t filter_id, hid_t fap
* values to all be the fill value, so this should be
* a safe comparison in theory.
*/
- VRFY((0 != HDmemcmp(read_buf, fill_buf, read_buf_size)), "Data verification succeeded");
+ VRFY((0 != memcmp(read_buf, fill_buf, read_buf_size)), "Data verification succeeded");
/*
* Write to part of the first chunk in the dataset with
@@ -8517,7 +8516,7 @@ test_fill_time_never(const char *parent_group, H5Z_filter_t filter_id, hid_t fap
* values to all be the fill value, so this should be
* a safe comparison in theory.
*/
- VRFY((0 != HDmemcmp(read_buf, fill_buf, read_buf_size)), "Data verification succeeded");
+ VRFY((0 != memcmp(read_buf, fill_buf, read_buf_size)), "Data verification succeeded");
/*
* Write to whole dataset and ensure fill value isn't returned
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c
index 2db7eff..bc6305e 100644
--- a/testpar/t_mdset.c
+++ b/testpar/t_mdset.c
@@ -649,7 +649,7 @@ dataset_fillvalue(void)
VRFY((ret >= 0), "H5Pset_dxpl_mpio succeeded");
/* set entire read buffer with the constant 2 */
- HDmemset(rdata, 2, (size_t)(dset_size * sizeof(int)));
+ memset(rdata, 2, (size_t)(dset_size * sizeof(int)));
/* Read the entire dataset back */
ret = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, dxpl, rdata);
@@ -739,7 +739,7 @@ dataset_fillvalue(void)
VRFY((ret >= 0), "H5Pset_dxpl_mpio succeeded");
/* set entire read buffer with the constant 2 */
- HDmemset(rdata, 2, (size_t)(dset_size * sizeof(int)));
+ memset(rdata, 2, (size_t)(dset_size * sizeof(int)));
/* Read the entire dataset back */
ret = H5Dread(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, dxpl, rdata);
diff --git a/testpar/t_pmulti_dset.c b/testpar/t_pmulti_dset.c
index 5da2e31..8d7fdef 100644
--- a/testpar/t_pmulti_dset.c
+++ b/testpar/t_pmulti_dset.c
@@ -305,8 +305,8 @@ test_pmdset(size_t niter, unsigned flags)
} /* end for */
/* Initialize read buffer and expected read buffer */
- (void)HDmemset(rbuf, 0, buf_size);
- (void)HDmemset(erbuf, 0, buf_size);
+ (void)memset(rbuf, 0, buf_size);
+ (void)memset(erbuf, 0, buf_size);
/* Initialize write buffer */
for (j = 0; j < max_dsets; j++)
@@ -316,7 +316,7 @@ test_pmdset(size_t niter, unsigned flags)
(j * MAX_DSET_X * MAX_DSET_Y) + (k * MAX_DSET_Y) + l);
/* Initialize expected file buffer */
- (void)HDmemset(efbuf, 0, buf_size);
+ (void)memset(efbuf, 0, buf_size);
/* Set last_read to TRUE so we don't reopen the file on the first
* iteration */
@@ -377,7 +377,7 @@ test_pmdset(size_t niter, unsigned flags)
/* Reset dataset usage array, if writing */
if (!do_read)
- HDmemset(dset_usage, 0, max_dsets * MAX_DSET_X * MAX_DSET_Y);
+ memset(dset_usage, 0, max_dsets * MAX_DSET_X * MAX_DSET_Y);
/* Iterate over processes */
for (l = 0; l < (size_t)mpi_size; l++) {
@@ -466,7 +466,7 @@ test_pmdset(size_t niter, unsigned flags)
/* Reset dataset usage array if reading, since in this case we don't care
* about overlapping selections between processes */
if (do_read)
- HDmemset(dset_usage, 0, max_dsets * MAX_DSET_X * MAX_DSET_Y);
+ memset(dset_usage, 0, max_dsets * MAX_DSET_X * MAX_DSET_Y);
/* Generate points */
for (m = 0; m < npoints; m++) {
diff --git a/testpar/t_select_io_dset.c b/testpar/t_select_io_dset.c
index 13c6743..eb64bfe 100644
--- a/testpar/t_select_io_dset.c
+++ b/testpar/t_select_io_dset.c
@@ -269,7 +269,7 @@ test_no_type_conv(hid_t fid, unsigned chunked, unsigned dtrans, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, sizeof(wbuf));
+ memcpy(wbuf_bak, wbuf, sizeof(wbuf));
/* Write data to the dataset with/without data transform */
if (H5Dwrite(did, H5T_NATIVE_INT, mspace_id, fspace_id, dxpl, wbuf) < 0)
@@ -277,7 +277,7 @@ test_no_type_conv(hid_t fid, unsigned chunked, unsigned dtrans, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, sizeof(wbuf));
+ memcpy(wbuf, wbuf_bak, sizeof(wbuf));
check_io_mode(dxpl, chunked);
@@ -415,7 +415,7 @@ test_no_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, (size_t)(4 * DSET_SELECT_DIM));
+ memcpy(wbuf_bak, wbuf, (size_t)(4 * DSET_SELECT_DIM));
/* Write the data to the dataset with little endian */
if (H5Dwrite(did, H5T_STD_I32LE, mspace_id, fspace_id, dxpl, wbuf) < 0)
@@ -423,7 +423,7 @@ test_no_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, (size_t)(4 * DSET_SELECT_DIM));
+ memcpy(wbuf, wbuf_bak, (size_t)(4 * DSET_SELECT_DIM));
check_io_mode(dxpl, chunked);
@@ -567,7 +567,7 @@ test_larger_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsign
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, sizeof(wbuf));
+ memcpy(wbuf_bak, wbuf, sizeof(wbuf));
/* Write data to the dataset with/without data transform set in dxpl */
if (H5Dwrite(did, H5T_NATIVE_LONG, mspace_id, fspace_id, dxpl, wbuf) < 0)
@@ -575,7 +575,7 @@ test_larger_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsign
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, sizeof(wbuf));
+ memcpy(wbuf, wbuf_bak, sizeof(wbuf));
check_io_mode(dxpl, chunked);
@@ -716,7 +716,7 @@ test_smaller_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsig
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(wbuf_bak, wbuf, sizeof(wbuf));
+ memcpy(wbuf_bak, wbuf, sizeof(wbuf));
/* Write data to the dataset with/without data transform in dxpl */
if (H5Dwrite(did, H5T_NATIVE_SHORT, mspace_id, fspace_id, dxpl, wbuf) < 0)
@@ -724,7 +724,7 @@ test_smaller_mem_type_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsig
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(wbuf, wbuf_bak, sizeof(wbuf));
+ memcpy(wbuf, wbuf_bak, sizeof(wbuf));
check_io_mode(dxpl, chunked);
@@ -906,7 +906,7 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
/* Write all the data to the dataset */
if (H5Dwrite(did, s1_tid, mspace_id, fspace_id, dxpl, s1_wbuf) < 0)
@@ -914,12 +914,12 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
check_io_mode(dxpl, chunked);
/* Read all the data from the dataset */
- HDmemset(s1_rbuf, 0, sizeof(s1_t) * DSET_SELECT_DIM);
+ memset(s1_rbuf, 0, sizeof(s1_t) * DSET_SELECT_DIM);
if (H5Dread(did, s1_tid, mspace_id, fspace_id, dxpl, s1_rbuf) < 0)
P_TEST_ERROR;
@@ -956,7 +956,7 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf_bak, s1_wbuf, sizeof(s1_t) * DSET_SELECT_DIM);
/* Write s1_wbuf to the dataset but with only subset members in ss_tid */
if (H5Dwrite(did, ss_ac_tid, mspace_id, fspace_id, dxpl, s1_wbuf) < 0)
@@ -964,10 +964,10 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
+ memcpy(s1_wbuf, s1_wbuf_bak, sizeof(s1_t) * DSET_SELECT_DIM);
/* Read the whole compound back */
- HDmemset(s1_rbuf, 0, sizeof(s1_t) * DSET_SELECT_DIM);
+ memset(s1_rbuf, 0, sizeof(s1_t) * DSET_SELECT_DIM);
if (H5Dread(did, s1_tid, mspace_id, fspace_id, dxpl, s1_rbuf) < 0)
P_TEST_ERROR;
@@ -1048,17 +1048,17 @@ test_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s2_wbuf_bak, s2_wbuf, sizeof(s2_t) * DSET_SELECT_DIM);
+ memcpy(s2_wbuf_bak, s2_wbuf, sizeof(s2_t) * DSET_SELECT_DIM);
if (H5Dwrite(did, s2_tid, mspace_id, fspace_id, dxpl, s2_wbuf) < 0)
P_TEST_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s2_wbuf, s2_wbuf_bak, sizeof(s2_t) * DSET_SELECT_DIM);
+ memcpy(s2_wbuf, s2_wbuf_bak, sizeof(s2_t) * DSET_SELECT_DIM);
/* Read it back */
- HDmemset(s2_rbuf, 0, sizeof(s2_t) * DSET_SELECT_DIM);
+ memset(s2_rbuf, 0, sizeof(s2_t) * DSET_SELECT_DIM);
if (H5Dread(did, s2_tid, mspace_id, fspace_id, dxpl, s2_rbuf) < 0)
P_TEST_ERROR;
@@ -1212,7 +1212,7 @@ test_type_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, unsigned
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(lwbuf_bak, lwbuf, sizeof(lwbuf));
+ memcpy(lwbuf_bak, lwbuf, sizeof(lwbuf));
/* Write data to the dataset with/without data transform in dxpl */
if (H5Dwrite(did, H5T_NATIVE_LONG, mspace_id, fspace_id, dxpl, lwbuf) < 0)
@@ -1220,7 +1220,7 @@ test_type_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, unsigned
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(lwbuf, lwbuf_bak, sizeof(lwbuf));
+ memcpy(lwbuf, lwbuf_bak, sizeof(lwbuf));
check_io_mode(dxpl, chunked);
@@ -1271,7 +1271,7 @@ test_type_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, unsigned
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(lwbuf_bak, lwbuf, sizeof(lwbuf));
+ memcpy(lwbuf_bak, lwbuf, sizeof(lwbuf));
/* Write data to the dataset with/without data transform */
if (H5Dwrite(did, H5T_NATIVE_LONG, mspace_id, fspace_id, dxpl, lwbuf) < 0)
@@ -1279,7 +1279,7 @@ test_type_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, unsigned
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(lwbuf, lwbuf_bak, sizeof(lwbuf));
+ memcpy(lwbuf, lwbuf_bak, sizeof(lwbuf));
/* Read the data from the dataset: type conversion int-->short */
/* If dtrans, without data transform set in dxpl */
@@ -1332,7 +1332,7 @@ test_type_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, unsigned
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(swbuf_bak, swbuf, sizeof(swbuf));
+ memcpy(swbuf_bak, swbuf, sizeof(swbuf));
/* Write data to the dataset with/without data transform */
if (H5Dwrite(did, H5T_NATIVE_SHORT, mspace_id, fspace_id, dxpl, swbuf) < 0)
@@ -1340,7 +1340,7 @@ test_type_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, unsigned
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(swbuf, swbuf_bak, sizeof(swbuf));
+ memcpy(swbuf, swbuf_bak, sizeof(swbuf));
/* Read the data from the dataset: type conversion int-->llong */
/* If dtrans, without data transform set in dxpl */
@@ -1540,7 +1540,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(total_wbuf_bak, total_wbuf, ndsets * DSET_SELECT_DIM * sizeof(int));
/* Write data to the dataset with/without data transform */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -1548,7 +1548,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(total_wbuf, total_wbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
check_io_mode(dxpl, chunked);
@@ -1609,7 +1609,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_lwbuf_bak, total_lwbuf, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(total_lwbuf_bak, total_lwbuf, ndsets * DSET_SELECT_DIM * sizeof(long));
/* Write data to the dataset with/without data transform */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -1617,7 +1617,7 @@ test_multi_dsets_no_bkg(hid_t fid, unsigned chunked, unsigned dtrans, unsigned m
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_lwbuf, total_lwbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(total_lwbuf, total_lwbuf_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
/* Read data from the dataset (if dtrans, with data transform again in dxpl */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
@@ -1845,14 +1845,14 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, buf_size);
+ memcpy(total_wbuf_bak, total_wbuf, buf_size);
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
P_TEST_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, buf_size);
+ memcpy(total_wbuf, total_wbuf_bak, buf_size);
check_io_mode(dxpl, chunked);
@@ -1909,14 +1909,14 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, buf_size);
+ memcpy(total_wbuf_bak, total_wbuf, buf_size);
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
P_TEST_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, buf_size);
+ memcpy(total_wbuf, total_wbuf_bak, buf_size);
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
P_TEST_ERROR;
@@ -2089,14 +2089,14 @@ test_multi_dsets_cmpd_with_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(s2_total_wbuf_bak, s2_total_wbuf, s2_buf_size);
+ memcpy(s2_total_wbuf_bak, s2_total_wbuf, s2_buf_size);
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
P_TEST_ERROR;
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(s2_total_wbuf, s2_total_wbuf_bak, s2_buf_size);
+ memcpy(s2_total_wbuf, s2_total_wbuf_bak, s2_buf_size);
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
P_TEST_ERROR;
@@ -2285,7 +2285,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, buf_size);
+ memcpy(total_wbuf_bak, total_wbuf, buf_size);
/* Write data to the dataset */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -2293,7 +2293,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, buf_size);
+ memcpy(total_wbuf, total_wbuf_bak, buf_size);
check_io_mode(dxpl, chunked);
@@ -2358,7 +2358,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_lwbuf_bak, total_lwbuf, buf_size);
+ memcpy(total_lwbuf_bak, total_lwbuf, buf_size);
/* Write data to the dataset */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -2366,7 +2366,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_lwbuf, total_lwbuf_bak, buf_size);
+ memcpy(total_lwbuf, total_lwbuf_bak, buf_size);
/* Read data from the dataset */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
@@ -2427,7 +2427,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_swbuf_bak, total_swbuf, buf_size);
+ memcpy(total_swbuf_bak, total_swbuf, buf_size);
/* Write data to the dataset */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -2435,7 +2435,7 @@ test_multi_dsets_size_change_no_bkg(hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_swbuf, total_swbuf_bak, buf_size);
+ memcpy(total_swbuf, total_swbuf_bak, buf_size);
/* Read data from the dataset */
if (H5Dread_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
@@ -2754,7 +2754,7 @@ test_multi_dsets_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, un
/* Copy wbuf if the library will be modifying it */
if (mwbuf)
- HDmemcpy(total_wbuf_bak, total_wbuf, buf_size);
+ memcpy(total_wbuf_bak, total_wbuf, buf_size);
/* Write data to the dataset with/without data transform */
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -2762,7 +2762,7 @@ test_multi_dsets_conv_sel_empty(hid_t fid, unsigned chunked, unsigned dtrans, un
/* Restore wbuf from backup if the library modified it */
if (mwbuf)
- HDmemcpy(total_wbuf, total_wbuf_bak, buf_size);
+ memcpy(total_wbuf, total_wbuf_bak, buf_size);
check_io_mode(dxpl, chunked);
@@ -3217,12 +3217,11 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
/* Copy wbufs if the library will be modifying them */
if (mwbuf) {
- HDmemcpy(total_wbuf1_bak, total_wbuf1, ndsets * DSET_SELECT_DIM * sizeof(int));
- HDmemcpy(ul_total_wbuf2_bak, ul_total_wbuf2,
- ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
- HDmemcpy(l_total_wbuf2_bak, l_total_wbuf2, ndsets * DSET_SELECT_DIM * sizeof(long));
- HDmemcpy(s1_total_wbuf3_bak, s1_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
- HDmemcpy(s4_total_wbuf3_bak, s4_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
+ memcpy(total_wbuf1_bak, total_wbuf1, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(ul_total_wbuf2_bak, ul_total_wbuf2, ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
+ memcpy(l_total_wbuf2_bak, l_total_wbuf2, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(s1_total_wbuf3_bak, s1_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
+ memcpy(s4_total_wbuf3_bak, s4_total_wbuf3, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
}
if (H5Dwrite_multi(ndsets, dset_dids, mem_tids, mem_sids, file_sids, dxpl, wbufs) < 0)
@@ -3230,12 +3229,11 @@ test_multi_dsets_all(int niter, hid_t fid, unsigned chunked, unsigned mwbuf)
/* Restore wbufs from backup if the library modified them */
if (mwbuf) {
- HDmemcpy(total_wbuf1, total_wbuf1_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
- HDmemcpy(ul_total_wbuf2, ul_total_wbuf2_bak,
- ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
- HDmemcpy(l_total_wbuf2, l_total_wbuf2_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
- HDmemcpy(s1_total_wbuf3, s1_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
- HDmemcpy(s4_total_wbuf3, s4_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
+ memcpy(total_wbuf1, total_wbuf1_bak, ndsets * DSET_SELECT_DIM * sizeof(int));
+ memcpy(ul_total_wbuf2, ul_total_wbuf2_bak, ndsets * DSET_SELECT_DIM * sizeof(unsigned long));
+ memcpy(l_total_wbuf2, l_total_wbuf2_bak, ndsets * DSET_SELECT_DIM * sizeof(long));
+ memcpy(s1_total_wbuf3, s1_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s1_t));
+ memcpy(s4_total_wbuf3, s4_total_wbuf3_bak, ndsets * DSET_SELECT_DIM * sizeof(s4_t));
}
if (H5Dread_multi(ndsets, dset_dids, r_mem_tids, mem_sids, file_sids, dxpl, rbufs) < 0)
diff --git a/testpar/t_shapesame.c b/testpar/t_shapesame.c
index 2c64e41..dc60e51 100644
--- a/testpar/t_shapesame.c
+++ b/testpar/t_shapesame.c
@@ -218,18 +218,18 @@ hs_dr_pio_test__setup(const int test_num, const int edge_size, const int checker
ptr_0 = tv_ptr->small_ds_buf_0;
for (i = 0; i < (int)(tv_ptr->small_ds_size); i++)
*ptr_0++ = (uint32_t)i;
- HDmemset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
- HDmemset(tv_ptr->small_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
- HDmemset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
+ memset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
ptr_0 = tv_ptr->large_ds_buf_0;
for (i = 0; i < (int)(tv_ptr->large_ds_size); i++)
*ptr_0++ = (uint32_t)i;
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
- HDmemset(tv_ptr->large_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_2, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
- HDmemset(tv_ptr->large_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->large_ds_slice_size);
+ memset(tv_ptr->large_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->large_ds_slice_size);
filename = (const char *)GetTestParameters();
assert(filename != NULL);
@@ -720,7 +720,7 @@ contig_hs_dr_pio_test__d2m_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the buffer we will be reading into */
- HDmemset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
+ memset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
#if CONTIG_HS_DR_PIO_TEST__D2M_L2S__DEBUG
fprintf(stdout, "%s reading slices from big cube on disk into small cube slice.\n", fcnName);
@@ -933,7 +933,7 @@ contig_hs_dr_pio_test__d2m_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
#endif /* CONTIG_HS_DR_PIO_TEST__D2M_S2L__DEBUG */
/* zero out the in memory large ds */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
/* set up start, stride, count, and block -- note that we will
* change start[] so as to read slices of the large cube.
@@ -1202,7 +1202,7 @@ contig_hs_dr_pio_test__m2d_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory small ds */
- HDmemset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
#if CONTIG_HS_DR_PIO_TEST__M2D_L2S__DEBUG
fprintf(stdout, "%s writing slices from big ds to slices of small ds on disk.\n", fcnName);
@@ -1475,7 +1475,7 @@ contig_hs_dr_pio_test__m2d_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory large ds */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
#if CONTIG_HS_DR_PIO_TEST__M2D_S2L__DEBUG
fprintf(stdout, "%s writing process slices of small ds to slices of large ds on disk.\n", fcnName);
@@ -2551,7 +2551,7 @@ ckrbrd_hs_dr_pio_test__d2m_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
sel_start);
/* zero out the buffer we will be reading into */
- HDmemset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
+ memset(tv_ptr->small_ds_slice_buf, 0, sizeof(uint32_t) * tv_ptr->small_ds_slice_size);
#if CHECKER_BOARD_HS_DR_PIO_TEST__D2M_L2S__DEBUG
fprintf(stdout, "%s:%d: initial small_ds_slice_buf = ", fcnName, tv_ptr->mpi_rank);
@@ -2783,7 +2783,7 @@ ckrbrd_hs_dr_pio_test__d2m_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
#endif /* CHECKER_BOARD_HS_DR_PIO_TEST__D2M_S2L__DEBUG */
/* zero out the buffer we will be reading into */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
/* set up start, stride, count, and block -- note that we will
* change start[] so as to read the slice of the small data set
@@ -3107,7 +3107,7 @@ ckrbrd_hs_dr_pio_test__m2d_l2s(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory small ds */
- HDmemset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
+ memset(tv_ptr->small_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->small_ds_size);
#if CHECKER_BOARD_HS_DR_PIO_TEST__M2D_L2S__DEBUG
fprintf(stdout,
@@ -3404,7 +3404,7 @@ ckrbrd_hs_dr_pio_test__m2d_s2l(struct hs_dr_pio_test_vars_t *tv_ptr)
}
/* zero out the in memory large ds */
- HDmemset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
+ memset(tv_ptr->large_ds_buf_1, 0, sizeof(uint32_t) * tv_ptr->large_ds_size);
#if CHECKER_BOARD_HS_DR_PIO_TEST__M2D_S2L__DEBUG
fprintf(stdout,
@@ -4282,7 +4282,7 @@ main(int argc, char **argv)
H5open();
h5_show_hostname();
- HDmemset(filenames, 0, sizeof(filenames));
+ memset(filenames, 0, sizeof(filenames));
for (int i = 0; i < NFILENAME; i++) {
if (NULL == (filenames[i] = malloc(PATH_MAX))) {
printf("couldn't allocate filename array\n");
diff --git a/testpar/t_span_tree.c b/testpar/t_span_tree.c
index 20930ff..4950bc8 100644
--- a/testpar/t_span_tree.c
+++ b/testpar/t_span_tree.c
@@ -221,7 +221,7 @@ coll_write_test(int chunk_factor)
matrix_out = (int *)malloc(sizeof(int) * (size_t)mdim[0] * (size_t)mdim[1] * (size_t)mpi_size);
matrix_out1 = (int *)malloc(sizeof(int) * (size_t)mdim[0] * (size_t)mdim[1] * (size_t)mpi_size);
- HDmemset(vector, 0, sizeof(int) * (size_t)mdim1[0] * (size_t)mpi_size);
+ memset(vector, 0, sizeof(int) * (size_t)mdim1[0] * (size_t)mpi_size);
vector[0] = vector[MSPACE1_DIM * mpi_size - 1] = -1;
for (i = 1; i < MSPACE1_DIM * mpi_size - 1; i++)
H5_CHECKED_ASSIGN(vector[i], int, i, unsigned);
@@ -544,8 +544,8 @@ coll_write_test(int chunk_factor)
* Initialize data buffer.
*/
- HDmemset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
- HDmemset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
/*
* Read data back to the buffer matrix_out.
*/
@@ -782,8 +782,8 @@ coll_read_test(void)
* Initialize data buffer.
*/
- HDmemset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
- HDmemset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
+ memset(matrix_out1, 0, sizeof(int) * (size_t)MSPACE_DIM1 * (size_t)MSPACE_DIM2 * (size_t)mpi_size);
/*
* Read data back to the buffer matrix_out.
diff --git a/testpar/t_subfiling_vfd.c b/testpar/t_subfiling_vfd.c
index 7135617..8ac413a 100644
--- a/testpar/t_subfiling_vfd.c
+++ b/testpar/t_subfiling_vfd.c
@@ -514,7 +514,7 @@ test_stripe_sizes(void)
write_buf = malloc(nbytes);
VRFY(write_buf, "malloc succeeded");
- HDmemset(write_buf, 255, nbytes);
+ memset(write_buf, 255, nbytes);
c_write_buf = write_buf;
@@ -676,7 +676,7 @@ test_stripe_sizes(void)
write_buf = malloc(nbytes);
VRFY(write_buf, "malloc succeeded");
- HDmemset(write_buf, 255, nbytes);
+ memset(write_buf, 255, nbytes);
c_write_buf = write_buf;
diff --git a/testpar/t_vfd.c b/testpar/t_vfd.c
index 37c918a..6e6329c 100644
--- a/testpar/t_vfd.c
+++ b/testpar/t_vfd.c
@@ -344,8 +344,8 @@ setup_vfd_test_file(int file_name_id, char *file_name, int mpi_size, H5FD_mpio_x
failure_mssg = "Can't set MPI communicator and info in subfiling fapl.";
}
- HDmemset(&ioc_config, 0, sizeof(ioc_config));
- HDmemset(&subfiling_conf, 0, sizeof(subfiling_conf));
+ memset(&ioc_config, 0, sizeof(ioc_config));
+ memset(&subfiling_conf, 0, sizeof(subfiling_conf));
/* Get subfiling VFD defaults */
if ((pass) && (H5Pget_fapl_subfiling(fapl_id, &subfiling_conf) == FAIL)) {
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 5b7cd14..b35a758 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -334,7 +334,7 @@ main(int argc, char **argv)
H5open();
h5_show_hostname();
- HDmemset(filenames, 0, sizeof(filenames));
+ memset(filenames, 0, sizeof(filenames));
for (int i = 0; i < NFILENAME; i++) {
if (NULL == (filenames[i] = malloc(PATH_MAX))) {
printf("couldn't allocate filename array\n");