summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2024-03-07 21:05:28 (GMT)
committerGitHub <noreply@github.com>2024-03-07 21:05:28 (GMT)
commit871a49feca4725b83e2ce0b6ad4c8ae9551d9f06 (patch)
tree3d1d8df37cfa0953401e086396f857a8b1459be3
parent577a32fe83a800b170d4fd8e079fbe2774c9396c (diff)
downloadhdf5-871a49feca4725b83e2ce0b6ad4c8ae9551d9f06.zip
hdf5-871a49feca4725b83e2ce0b6ad4c8ae9551d9f06.tar.gz
hdf5-871a49feca4725b83e2ce0b6ad4c8ae9551d9f06.tar.bz2
Use H5T_STD_I32LE to create datatype in vds examples (#4070)
Fixes issues when VDS examples are tested on BE systems
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-eiger.c2
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-exc.c2
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-exclim.c2
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim-maxmin.c2
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim.c2
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-percival.c14
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds-simpleIO.c2
-rw-r--r--HDF5Examples/C/H5VDS/h5ex_vds.c4
8 files changed, 15 insertions, 15 deletions
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c b/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
index 0629d73..8a41de6 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-eiger.c
@@ -89,7 +89,7 @@ main(void)
status = H5Pset_virtual(dcpl, vspace, "f-%b.h5", "/A", src_space);
/* Create a virtual dataset */
- dset = H5Dcreate2(file, DATASET, H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, DATASET, H5T_STD_I32LE, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(vspace);
status = H5Sclose(src_space);
status = H5Dclose(dset);
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-exc.c b/HDF5Examples/C/H5VDS/h5ex_vds-exc.c
index 10bb68c..de26911 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-exc.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-exc.c
@@ -120,7 +120,7 @@ main(void)
}
/* Create a virtual dataset */
- dset = H5Dcreate2(file, DATASET, H5T_NATIVE_INT, space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, DATASET, H5T_STD_I32LE, space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(space);
status = H5Sclose(nsrc_space);
status = H5Sclose(lsrc_space);
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-exclim.c b/HDF5Examples/C/H5VDS/h5ex_vds-exclim.c
index 6bebe76..61b3078 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-exclim.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-exclim.c
@@ -114,7 +114,7 @@ main(void)
}
/* Create a virtual dataset */
- dset = H5Dcreate2(file, DATASET, H5T_NATIVE_INT, space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, DATASET, H5T_STD_I32LE, space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(space);
status = H5Sclose(nsrc_space);
status = H5Sclose(lsrc_space);
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim-maxmin.c b/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim-maxmin.c
index 8ef996a..caf7280 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim-maxmin.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim-maxmin.c
@@ -95,7 +95,7 @@ main(void)
src_space = H5Screate_simple(RANK, dims, dims_max);
dcpl = H5Pcreate(H5P_DATASET_CREATE);
status = H5Pset_chunk(dcpl, RANK, chunk_dims);
- dset = H5Dcreate2(file, SRC_DATASET[i], H5T_NATIVE_INT, src_space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, SRC_DATASET[i], H5T_STD_I32LE, src_space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata);
status = H5Sclose(src_space);
status = H5Pclose(dcpl);
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim.c b/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim.c
index fadfb79..16f8651 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-percival-unlim.c
@@ -92,7 +92,7 @@ main(void)
src_space = H5Screate_simple(RANK, dims, dims_max);
dcpl = H5Pcreate(H5P_DATASET_CREATE);
status = H5Pset_chunk(dcpl, RANK, chunk_dims);
- dset = H5Dcreate2(file, SRC_DATASET[i], H5T_NATIVE_INT, src_space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, SRC_DATASET[i], H5T_STD_I32LE, src_space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata);
status = H5Sclose(src_space);
status = H5Pclose(dcpl);
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-percival.c b/HDF5Examples/C/H5VDS/h5ex_vds-percival.c
index edbef18..75e1653 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-percival.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-percival.c
@@ -80,12 +80,12 @@ main(void)
file = H5Fcreate(SRC_FILE[i], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
src_space = H5Screate_simple(RANK, dims, NULL);
- dset = H5Dcreate2(file, SRC_DATASET[i], H5T_NATIVE_INT, src_space, H5P_DEFAULT, H5P_DEFAULT,
- H5P_DEFAULT);
- status = H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata);
- status = H5Sclose(src_space);
- status = H5Dclose(dset);
- status = H5Fclose(file);
+ dset =
+ H5Dcreate2(file, SRC_DATASET[i], H5T_STD_I32LE, src_space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ status = H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata);
+ status = H5Sclose(src_space);
+ status = H5Dclose(dset);
+ status = H5Fclose(file);
}
file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
@@ -130,7 +130,7 @@ main(void)
H5Sselect_none(vspace);
/* Create a virtual dataset */
- dset = H5Dcreate2(file, DATASET, H5T_NATIVE_INT, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, DATASET, H5T_STD_I32LE, vspace, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(vspace);
status = H5Sclose(src_space);
status = H5Dclose(dset);
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds-simpleIO.c b/HDF5Examples/C/H5VDS/h5ex_vds-simpleIO.c
index 3bd3133..8029934 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds-simpleIO.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds-simpleIO.c
@@ -69,7 +69,7 @@ main(void)
*/
file = H5Fcreate(SRC_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
space = H5Screate_simple(RANK, dims, NULL);
- dset = H5Dcreate2(file, SRC_DATASET, H5T_NATIVE_INT, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ dset = H5Dcreate2(file, SRC_DATASET, H5T_STD_I32LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
status = H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata[0]);
status = H5Sclose(space);
status = H5Dclose(dset);
diff --git a/HDF5Examples/C/H5VDS/h5ex_vds.c b/HDF5Examples/C/H5VDS/h5ex_vds.c
index 96a8137..77219e8 100644
--- a/HDF5Examples/C/H5VDS/h5ex_vds.c
+++ b/HDF5Examples/C/H5VDS/h5ex_vds.c
@@ -87,7 +87,7 @@ main(void)
file = H5Fcreate(SRC_FILE[i], H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
space = H5Screate_simple(RANK1, dims, NULL);
- dset = H5Dcreate2(file, SRC_DATASET[i], H5T_NATIVE_INT, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ dset = H5Dcreate2(file, SRC_DATASET[i], H5T_STD_I32LE, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
status = H5Dwrite(dset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, wdata);
status = H5Sclose(space);
status = H5Dclose(dset);
@@ -127,7 +127,7 @@ main(void)
}
/* Create a virtual dataset. */
- dset = H5Dcreate2(file, DATASET, H5T_NATIVE_INT, space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
+ dset = H5Dcreate2(file, DATASET, H5T_STD_I32LE, space, H5P_DEFAULT, dcpl, H5P_DEFAULT);
status = H5Sclose(space);
status = H5Sclose(src_space);
status = H5Dclose(dset);