mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-25 17:00:45 +08:00
[svn-r22795] Create scalar test files and h5dump tests.
Tested: local linux
This commit is contained in:
parent
fcea67a3c2
commit
d834917bca
4
MANIFEST
4
MANIFEST
@ -1447,6 +1447,10 @@
|
||||
./tools/testfiles/topaque.h5
|
||||
./tools/testfiles/tsaf.ddl
|
||||
./tools/testfiles/tsaf.h5
|
||||
./tools/testfiles/tscalarattrintsize.ddl
|
||||
./tools/testfiles/tscalarattrintsize.h5
|
||||
./tools/testfiles/tscalarintsize.ddl
|
||||
./tools/testfiles/tscalarintsize.h5
|
||||
./tools/testfiles/tscaleoffset.ddl
|
||||
./tools/testfiles/tslink-1.ddl
|
||||
./tools/testfiles/tslink-2.ddl
|
||||
|
@ -124,17 +124,6 @@ IF (H5_HAVE_PARALLEL)
|
||||
TARGET_NAMING (benchpar ${LIB_TYPE})
|
||||
TARGET_LINK_LIBRARIES (benchpar ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
SET_TARGET_PROPERTIES (benchpar PROPERTIES FOLDER perform)
|
||||
|
||||
#-- Adding test for mpi-perf
|
||||
IF (NOT WIN32)
|
||||
SET (mpi-perf_SRCS
|
||||
${HDF5_PERFORM_SOURCE_DIR}/mpi-perf.c
|
||||
)
|
||||
ADD_EXECUTABLE (mpi-perf ${mpi-perf_SRCS})
|
||||
TARGET_NAMING (mpi-perf ${LIB_TYPE})
|
||||
TARGET_LINK_LIBRARIES (mpi-perf ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
SET_TARGET_PROPERTIES (mpi-perf PROPERTIES FOLDER perform)
|
||||
ENDIF (NOT WIN32)
|
||||
ENDIF (HDF5_BUILD_PARALLEL_ALL)
|
||||
ENDIF (H5_HAVE_PARALLEL)
|
||||
|
||||
@ -197,9 +186,5 @@ IF (H5_HAVE_PARALLEL)
|
||||
|
||||
IF (HDF5_BUILD_PARALLEL_ALL)
|
||||
ADD_TEST (NAME PERFORM_benchpar COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:benchpar>)
|
||||
|
||||
IF (NOT WIN32)
|
||||
ADD_TEST (NAME PERFORM_mpi-perf COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:mpi-perf>)
|
||||
ENDIF (NOT WIN32)
|
||||
ENDIF (HDF5_BUILD_PARALLEL_ALL)
|
||||
ENDIF (H5_HAVE_PARALLEL)
|
||||
|
@ -159,6 +159,8 @@ IF (BUILD_TESTING)
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tperror.ddl
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/treference.ddl
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tsaf.ddl
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tscalarintsize.ddl
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tscalarattrintsize.ddl
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tscaleoffset.ddl
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tshuffle.ddl
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tslink-1.ddl
|
||||
@ -260,6 +262,8 @@ IF (BUILD_TESTING)
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/torderattr.h5
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tordergr.h5
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tsaf.h5
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tscalarintsize.h5
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tscalarattrintsize.h5
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tslink.h5
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tsplit_file-m.h5
|
||||
${HDF5_TOOLS_SRC_DIR}/testfiles/tsplit_file-r.h5
|
||||
@ -1016,6 +1020,10 @@ IF (BUILD_TESTING)
|
||||
treference.out.err
|
||||
tsaf.out
|
||||
tsaf.out.err
|
||||
tscalarintsize.out
|
||||
tscalarintsize.out.err
|
||||
tscalarattrintsize.out
|
||||
tscalarattrintsize.out.err
|
||||
tscaleoffset.out
|
||||
tscaleoffset.out.err
|
||||
tshuffle.out
|
||||
@ -1079,10 +1087,14 @@ IF (BUILD_TESTING)
|
||||
ADD_H5_TEST (packedbits 0 --enable-error-stack packedbits.h5)
|
||||
# test for compound signed/unsigned datasets
|
||||
ADD_H5_TEST (tcmpdintsize 0 --enable-error-stack tcmpdintsize.h5)
|
||||
# test for signed/unsigned scalar datasets
|
||||
ADD_H5_TEST (tscalarintsize 0 --enable-error-stack tscalarintsize.h5)
|
||||
# test for signed/unsigned attributes
|
||||
ADD_H5_TEST (tattrintsize 0 --enable-error-stack tattrintsize.h5)
|
||||
# test for compound signed/unsigned attributes
|
||||
ADD_H5_TEST (tcmpdattrintsize 0 --enable-error-stack tcmpdattrintsize.h5)
|
||||
# test for signed/unsigned scalar attributes
|
||||
ADD_H5_TEST (tscalarattrintsize 0 --enable-error-stack tscalarattrintsize.h5)
|
||||
# test for displaying groups
|
||||
ADD_H5_TEST (tgroup-1 0 --enable-error-stack tgroup.h5)
|
||||
# test for displaying the selected groups
|
||||
|
@ -102,6 +102,8 @@
|
||||
#define FILE70 "tcmpdintsize.h5"
|
||||
#define FILE71 "tcmpdattrintsize.h5"
|
||||
#define FILE72 "tnestedcmpddt.h5"
|
||||
#define FILE73 "tscalarintsize.h5"
|
||||
#define FILE74 "tscalarattrintsize.h5"
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* prototypes
|
||||
@ -301,6 +303,23 @@ typedef struct s1_t {
|
||||
/* Name of dataset to create in datafile */
|
||||
#define F71_DATASETNAME "CompoundAttrIntSize"
|
||||
|
||||
/* "FILE73" macros and for FILE69 */
|
||||
#define F73_ARRAY_RANK 2
|
||||
#define F73_XDIM 8
|
||||
#define F73_DATASETU08 "DU08BITS"
|
||||
#define F73_DATASETS08 "DS08BITS"
|
||||
#define F73_YDIM8 8
|
||||
#define F73_DATASETU16 "DU16BITS"
|
||||
#define F73_DATASETS16 "DS16BITS"
|
||||
#define F73_YDIM16 16
|
||||
#define F73_DATASETU32 "DU32BITS"
|
||||
#define F73_DATASETS32 "DS32BITS"
|
||||
#define F73_YDIM32 32
|
||||
#define F73_DATASETU64 "DU64BITS"
|
||||
#define F73_DATASETS64 "DS64BITS"
|
||||
#define F73_YDIM64 64
|
||||
#define F73_DUMMYDBL "DummyDBL"
|
||||
|
||||
static void
|
||||
gent_group(void)
|
||||
{
|
||||
@ -8096,6 +8115,404 @@ static void gent_nested_compound_dt(void) { /* test nested data type */
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: gent_intscalars
|
||||
*
|
||||
* Purpose: Generate a file to be used in the h5dump tests.
|
||||
* Four datasets of 1, 2, 4 and 8 bytes of unsigned int types are created.
|
||||
* Four more datasets of 1, 2, 4 and 8 bytes of signed int types are created.
|
||||
* Fill them with raw data such that no bit will be all zero in a dataset.
|
||||
* A dummy dataset of double type is created for failure test.
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static void
|
||||
gent_intscalars(void)
|
||||
{
|
||||
hid_t fid, dataset, space, tid;
|
||||
hsize_t dims[2];
|
||||
uint8_t dsetu8[F73_XDIM][F73_YDIM8], valu8bits;
|
||||
uint16_t dsetu16[F73_XDIM][F73_YDIM16], valu16bits;
|
||||
uint32_t dsetu32[F73_XDIM][F73_YDIM32], valu32bits;
|
||||
uint64_t dsetu64[F73_XDIM][F73_YDIM64], valu64bits;
|
||||
int8_t dset8[F73_XDIM][F73_YDIM8], val8bits;
|
||||
int16_t dset16[F73_XDIM][F73_YDIM16], val16bits;
|
||||
int32_t dset32[F73_XDIM][F73_YDIM32], val32bits;
|
||||
int64_t dset64[F73_XDIM][F73_YDIM64], val64bits;
|
||||
double dsetdbl[F73_XDIM][F73_YDIM8];
|
||||
unsigned int i, j;
|
||||
|
||||
fid = H5Fcreate(FILE73, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
/* Dataset of 8 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM8;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U8LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETU08, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu8bits = (uint8_t) ~0u; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu8[i][0] = valu8bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu8[i][j] = dsetu8[i][j-1] << 1;
|
||||
}
|
||||
valu8bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dsetu8);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Dataset of 16 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM16;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U16LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETU16, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu16bits = (uint16_t) ~0u; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu16[i][0] = valu16bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu16[i][j] = dsetu16[i][j-1] << 1;
|
||||
}
|
||||
valu16bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dsetu16);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Dataset of 32 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM32;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U32LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETU32, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu32bits = (uint32_t) ~0u; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu32[i][0] = valu32bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu32[i][j] = dsetu32[i][j-1] << 1;
|
||||
}
|
||||
valu32bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dsetu32);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Dataset of 64 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM64;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U64LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETU64, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu64bits = (uint64_t) ~0Lu; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu64[i][0] = valu64bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu64[i][j] = dsetu64[i][j-1] << 1;
|
||||
}
|
||||
valu64bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dsetu64);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Dataset of 8 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM8;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I8LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETS08, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val8bits = (int8_t) ~0; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset8[i][0] = val8bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset8[i][j] = dset8[i][j-1] << 1;
|
||||
}
|
||||
val8bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset8);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Dataset of 16 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM16;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I16LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETS16, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val16bits = (int16_t) ~0; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset16[i][0] = val16bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset16[i][j] = dset16[i][j-1] << 1;
|
||||
}
|
||||
val16bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset16);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Dataset of 32 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM32;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I32LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETS32, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val32bits = (int32_t) ~0; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset32[i][0] = val32bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset32[i][j] = dset32[i][j-1] << 1;
|
||||
}
|
||||
val32bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset32);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Dataset of 64 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM64;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I64LE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DATASETS64, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val64bits = (int64_t) ~0L; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset64[i][0] = val64bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset64[i][j] = dset64[i][j-1] << 1;
|
||||
}
|
||||
val64bits <<= 1;
|
||||
}
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset64);
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
|
||||
/* Double Dummy set for failure tests */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM8;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_IEEE_F64BE, F73_ARRAY_RANK, dims);
|
||||
dataset = H5Dcreate2(fid, F73_DUMMYDBL, tid, space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
for(i = 0; i < dims[0]; i++)
|
||||
for(j = 0; j < dims[1]; j++)
|
||||
dsetdbl[i][j] = 0.0001 * j + i;
|
||||
|
||||
H5Dwrite(dataset, tid, H5S_ALL, H5S_ALL, H5P_DEFAULT, dsetdbl);
|
||||
|
||||
H5Sclose(space);
|
||||
H5Dclose(dataset);
|
||||
H5Fclose(fid);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: gent_attr_packedbits
|
||||
*
|
||||
* Purpose: Generate a file to be used in the h5dump packed bits tests.
|
||||
* Four attributes of 1, 2, 4 and 8 bytes of unsigned int types are created.
|
||||
* Four more datasets of 1, 2, 4 and 8 bytes of signed int types are created.
|
||||
* Fill them with raw data such that no bit will be all zero in a dataset.
|
||||
* A dummy dataset of double type is created for failure test.
|
||||
* Use file to test Signed/Unsigned datatypes and keep in sync with gent_packedbits()
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
static void
|
||||
gent_attr_intscalars(void)
|
||||
{
|
||||
hid_t fid, attr, space, root, tid;
|
||||
hsize_t dims[2];
|
||||
uint8_t dsetu8[F73_XDIM][F73_YDIM8], valu8bits;
|
||||
uint16_t dsetu16[F73_XDIM][F73_YDIM16], valu16bits;
|
||||
uint32_t dsetu32[F73_XDIM][F73_YDIM32], valu32bits;
|
||||
uint64_t dsetu64[F73_XDIM][F73_YDIM64], valu64bits;
|
||||
int8_t dset8[F73_XDIM][F73_YDIM8], val8bits;
|
||||
int16_t dset16[F73_XDIM][F73_YDIM16], val16bits;
|
||||
int32_t dset32[F73_XDIM][F73_YDIM32], val32bits;
|
||||
int64_t dset64[F73_XDIM][F73_YDIM64], val64bits;
|
||||
double dsetdbl[F73_XDIM][F73_YDIM8];
|
||||
unsigned int i, j;
|
||||
|
||||
fid = H5Fcreate(FILE74, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
|
||||
root = H5Gopen2(fid, "/", H5P_DEFAULT);
|
||||
|
||||
/* Attribute of 8 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM8;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U8LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETU08, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu8bits = (uint8_t) ~0u; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu8[i][0] = valu8bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu8[i][j] = dsetu8[i][j-1] << 1;
|
||||
}
|
||||
valu8bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dsetu8);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Attribute of 16 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM16;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U16LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETU16, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu16bits = (uint16_t) ~0u; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu16[i][0] = valu16bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu16[i][j] = dsetu16[i][j-1] << 1;
|
||||
}
|
||||
valu16bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dsetu16);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Attribute of 32 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM32;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U32LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETU32, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu32bits = (uint32_t) ~0u; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu32[i][0] = valu32bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu32[i][j] = dsetu32[i][j-1] << 1;
|
||||
}
|
||||
valu32bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dsetu32);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Attribute of 64 bits unsigned int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM64;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_U64LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETU64, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
valu64bits = (uint64_t) ~0Lu; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dsetu64[i][0] = valu64bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dsetu64[i][j] = dsetu64[i][j-1] << 1;
|
||||
}
|
||||
valu64bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dsetu64);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Attribute of 8 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM8;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I8LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETS08, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val8bits = (int8_t) ~0; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset8[i][0] = val8bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset8[i][j] = dset8[i][j-1] << 1;
|
||||
}
|
||||
val8bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dset8);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Attribute of 16 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM16;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I16LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETS16, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val16bits = (int16_t) ~0; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset16[i][0] = val16bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset16[i][j] = dset16[i][j-1] << 1;
|
||||
}
|
||||
val16bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dset16);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Attribute of 32 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM32;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I32LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETS32, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val32bits = (int32_t) ~0; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset32[i][0] = val32bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset32[i][j] = dset32[i][j-1] << 1;
|
||||
}
|
||||
val32bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dset32);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Attribute of 64 bits signed int */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM64;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_STD_I64LE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DATASETS64, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
val64bits = (int64_t) ~0L; /* all 1s */
|
||||
for(i = 0; i < dims[0]; i++){
|
||||
dset64[i][0] = val64bits;
|
||||
for(j = 1; j < dims[1]; j++) {
|
||||
dset64[i][j] = dset64[i][j-1] << 1;
|
||||
}
|
||||
val64bits <<= 1;
|
||||
}
|
||||
|
||||
H5Awrite(attr, tid, dset64);
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
/* Double Dummy set for failure tests */
|
||||
dims[0] = F73_XDIM; dims[1] = F73_YDIM8;
|
||||
space = H5Screate(H5S_SCALAR);
|
||||
tid = H5Tarray_create2(H5T_IEEE_F64BE, F73_ARRAY_RANK, dims);
|
||||
attr = H5Acreate2(root, F73_DUMMYDBL, tid, space, H5P_DEFAULT, H5P_DEFAULT);
|
||||
|
||||
for(i = 0; i < dims[0]; i++)
|
||||
for(j = 0; j < dims[1]; j++)
|
||||
dsetdbl[i][j] = 0.0001 * j + i;
|
||||
|
||||
H5Awrite(attr, tid, dsetdbl);
|
||||
|
||||
H5Sclose(space);
|
||||
H5Aclose(attr);
|
||||
|
||||
H5Gclose(root);
|
||||
H5Fclose(fid);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------
|
||||
* Function: main
|
||||
*
|
||||
@ -8178,6 +8595,8 @@ int main(void)
|
||||
gent_compound_attr_intsizes();
|
||||
|
||||
gent_nested_compound_dt();
|
||||
gent_intscalars();
|
||||
gent_attr_intscalars();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -143,6 +143,8 @@ $SRC_H5DUMP_TESTFILES/zerodim.h5
|
||||
$SRC_H5DUMP_TESTFILES/torderattr.h5
|
||||
$SRC_H5DUMP_TESTFILES/tordergr.h5
|
||||
$SRC_H5DUMP_TESTFILES/tsaf.h5
|
||||
$SRC_H5DUMP_TESTFILES/tscalarintsize.h5
|
||||
$SRC_H5DUMP_TESTFILES/tscalarattrintsize.h5
|
||||
$SRC_H5DUMP_TESTFILES/tslink.h5
|
||||
$SRC_H5DUMP_TESTFILES/tsplit_file-m.h5
|
||||
$SRC_H5DUMP_TESTFILES/tsplit_file-r.h5
|
||||
@ -277,6 +279,8 @@ $SRC_H5DUMP_TESTFILES/torderlinks2.ddl
|
||||
$SRC_H5DUMP_TESTFILES/tperror.ddl
|
||||
$SRC_H5DUMP_TESTFILES/treference.ddl
|
||||
$SRC_H5DUMP_TESTFILES/tsaf.ddl
|
||||
$SRC_H5DUMP_TESTFILES/tscalarintsize.ddl
|
||||
$SRC_H5DUMP_TESTFILES/tscalarattrintsize.ddl
|
||||
$SRC_H5DUMP_TESTFILES/tscaleoffset.ddl
|
||||
$SRC_H5DUMP_TESTFILES/tshuffle.ddl
|
||||
$SRC_H5DUMP_TESTFILES/tslink-1.ddl
|
||||
@ -678,10 +682,14 @@ TOOLTEST twidedisplay.ddl --enable-error-stack -w0 packedbits.h5
|
||||
TOOLTEST packedbits.ddl --enable-error-stack packedbits.h5
|
||||
# test for compound signed/unsigned datasets
|
||||
TOOLTEST tcmpdintsize.ddl --enable-error-stack tcmpdintsize.h5
|
||||
# test for signed/unsigned scalar datasets
|
||||
TOOLTEST tscalarintsize.ddl --enable-error-stack tscalarintsize.h5
|
||||
# test for signed/unsigned attributes
|
||||
TOOLTEST tattrintsize.ddl --enable-error-stack tattrintsize.h5
|
||||
# test for compound signed/unsigned attributes
|
||||
TOOLTEST tcmpdattrintsize.ddl --enable-error-stack tcmpdattrintsize.h5
|
||||
# test for signed/unsigned scalar attributes
|
||||
TOOLTEST tscalarattrintsize.ddl --enable-error-stack tscalarattrintsize.h5
|
||||
# test for displaying groups
|
||||
TOOLTEST tgroup-1.ddl --enable-error-stack tgroup.h5
|
||||
# test for displaying the selected groups
|
||||
|
130
tools/testfiles/tscalarattrintsize.ddl
Normal file
130
tools/testfiles/tscalarattrintsize.ddl
Normal file
@ -0,0 +1,130 @@
|
||||
HDF5 "tscalarattrintsize.h5" {
|
||||
GROUP "/" {
|
||||
ATTRIBUTE "DS08BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][8] H5T_STD_I8LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128,
|
||||
-2, -4, -8, -16, -32, -64, -128, 0,
|
||||
-4, -8, -16, -32, -64, -128, 0, 0,
|
||||
-8, -16, -32, -64, -128, 0, 0, 0,
|
||||
-16, -32, -64, -128, 0, 0, 0, 0,
|
||||
-32, -64, -128, 0, 0, 0, 0, 0,
|
||||
-64, -128, 0, 0, 0, 0, 0, 0,
|
||||
-128, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DS16BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][16] H5T_STD_I16LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768,
|
||||
-2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0,
|
||||
-4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0,
|
||||
-8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0,
|
||||
-16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0,
|
||||
-32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0, 0,
|
||||
-64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0, 0, 0,
|
||||
-128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DS32BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][32] H5T_STD_I32LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648,
|
||||
-2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0,
|
||||
-4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0,
|
||||
-8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0,
|
||||
-16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0,
|
||||
-32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0, 0,
|
||||
-64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0, 0, 0,
|
||||
-128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DS64BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][64] H5T_STD_I64LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808,
|
||||
-2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0,
|
||||
-4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0,
|
||||
-8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0,
|
||||
-16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0,
|
||||
-32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0, 0,
|
||||
-64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0, 0, 0,
|
||||
-128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DU08BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][8] H5T_STD_U8LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 255, 254, 252, 248, 240, 224, 192, 128,
|
||||
254, 252, 248, 240, 224, 192, 128, 0,
|
||||
252, 248, 240, 224, 192, 128, 0, 0,
|
||||
248, 240, 224, 192, 128, 0, 0, 0,
|
||||
240, 224, 192, 128, 0, 0, 0, 0,
|
||||
224, 192, 128, 0, 0, 0, 0, 0,
|
||||
192, 128, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DU16BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][16] H5T_STD_U16LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 65535, 65534, 65532, 65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768,
|
||||
65534, 65532, 65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0,
|
||||
65532, 65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0,
|
||||
65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0,
|
||||
65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0,
|
||||
65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0, 0,
|
||||
65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0, 0, 0,
|
||||
65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DU32BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][32] H5T_STD_U32LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 4294967295, 4294967294, 4294967292, 4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648,
|
||||
4294967294, 4294967292, 4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0,
|
||||
4294967292, 4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0,
|
||||
4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0,
|
||||
4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0,
|
||||
4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0, 0,
|
||||
4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0, 0, 0,
|
||||
4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DU64BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][64] H5T_STD_U64LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808,
|
||||
18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0,
|
||||
18446744073709551612, 18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0,
|
||||
18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0,
|
||||
18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0,
|
||||
18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0, 0,
|
||||
18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0, 0, 0,
|
||||
18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
ATTRIBUTE "DummyDBL" {
|
||||
DATATYPE H5T_ARRAY { [8][8] H5T_IEEE_F64BE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 0, 1.17284e-90, 1.17284e-90, 1.05571e+165, 1.17284e-90, -3.23633e+292, 1.05571e+165, -3.55182e+37,
|
||||
3.03865e-319, 3.71772e+239, -5.54961e+165, 8.81586e+91, -8.11368e+22, 1.28325e-51, -1.9407e-125, 2.0391e-194,
|
||||
3.16202e-322, 4.49083e-30, 3.71772e+239, -6.38938e-104, -5.54961e+165, 9.82903e-178, 8.81586e+91, -9.79926e-247,
|
||||
1.04347e-320, 4.49083e-30, 3.71772e+239, -6.38938e-104, -5.54961e+165, 9.82903e-178, 8.81586e+91, -9.79926e-247,
|
||||
2.05531e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31,
|
||||
2.56124e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31,
|
||||
3.06716e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31,
|
||||
3.57308e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
tools/testfiles/tscalarattrintsize.h5
Normal file
BIN
tools/testfiles/tscalarattrintsize.h5
Normal file
Binary file not shown.
130
tools/testfiles/tscalarintsize.ddl
Normal file
130
tools/testfiles/tscalarintsize.ddl
Normal file
@ -0,0 +1,130 @@
|
||||
HDF5 "tscalarintsize.h5" {
|
||||
GROUP "/" {
|
||||
DATASET "DS08BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][8] H5T_STD_I8LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128,
|
||||
-2, -4, -8, -16, -32, -64, -128, 0,
|
||||
-4, -8, -16, -32, -64, -128, 0, 0,
|
||||
-8, -16, -32, -64, -128, 0, 0, 0,
|
||||
-16, -32, -64, -128, 0, 0, 0, 0,
|
||||
-32, -64, -128, 0, 0, 0, 0, 0,
|
||||
-64, -128, 0, 0, 0, 0, 0, 0,
|
||||
-128, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DS16BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][16] H5T_STD_I16LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768,
|
||||
-2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0,
|
||||
-4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0,
|
||||
-8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0,
|
||||
-16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0,
|
||||
-32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0, 0,
|
||||
-64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0, 0, 0,
|
||||
-128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DS32BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][32] H5T_STD_I32LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648,
|
||||
-2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0,
|
||||
-4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0,
|
||||
-8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0,
|
||||
-16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0,
|
||||
-32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0, 0,
|
||||
-64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0, 0, 0,
|
||||
-128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DS64BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][64] H5T_STD_I64LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ -1, -2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808,
|
||||
-2, -4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0,
|
||||
-4, -8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0,
|
||||
-8, -16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0,
|
||||
-16, -32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0,
|
||||
-32, -64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0, 0,
|
||||
-64, -128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0, 0, 0,
|
||||
-128, -256, -512, -1024, -2048, -4096, -8192, -16384, -32768, -65536, -131072, -262144, -524288, -1048576, -2097152, -4194304, -8388608, -16777216, -33554432, -67108864, -134217728, -268435456, -536870912, -1073741824, -2147483648, -4294967296, -8589934592, -17179869184, -34359738368, -68719476736, -137438953472, -274877906944, -549755813888, -1099511627776, -2199023255552, -4398046511104, -8796093022208, -17592186044416, -35184372088832, -70368744177664, -140737488355328, -281474976710656, -562949953421312, -1125899906842624, -2251799813685248, -4503599627370496, -9007199254740992, -18014398509481984, -36028797018963968, -72057594037927936, -144115188075855872, -288230376151711744, -576460752303423488, -1152921504606846976, -2305843009213693952, -4611686018427387904, -9223372036854775808, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DU08BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][8] H5T_STD_U8LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 255, 254, 252, 248, 240, 224, 192, 128,
|
||||
254, 252, 248, 240, 224, 192, 128, 0,
|
||||
252, 248, 240, 224, 192, 128, 0, 0,
|
||||
248, 240, 224, 192, 128, 0, 0, 0,
|
||||
240, 224, 192, 128, 0, 0, 0, 0,
|
||||
224, 192, 128, 0, 0, 0, 0, 0,
|
||||
192, 128, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DU16BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][16] H5T_STD_U16LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 65535, 65534, 65532, 65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768,
|
||||
65534, 65532, 65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0,
|
||||
65532, 65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0,
|
||||
65528, 65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0,
|
||||
65520, 65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0,
|
||||
65504, 65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0, 0,
|
||||
65472, 65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0, 0, 0,
|
||||
65408, 65280, 65024, 64512, 63488, 61440, 57344, 49152, 32768, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DU32BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][32] H5T_STD_U32LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 4294967295, 4294967294, 4294967292, 4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648,
|
||||
4294967294, 4294967292, 4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0,
|
||||
4294967292, 4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0,
|
||||
4294967288, 4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0,
|
||||
4294967280, 4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0,
|
||||
4294967264, 4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0, 0,
|
||||
4294967232, 4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0, 0, 0,
|
||||
4294967168, 4294967040, 4294966784, 4294966272, 4294965248, 4294963200, 4294959104, 4294950912, 4294934528, 4294901760, 4294836224, 4294705152, 4294443008, 4293918720, 4292870144, 4290772992, 4286578688, 4278190080, 4261412864, 4227858432, 4160749568, 4026531840, 3758096384, 3221225472, 2147483648, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DU64BITS" {
|
||||
DATATYPE H5T_ARRAY { [8][64] H5T_STD_U64LE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 18446744073709551615, 18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808,
|
||||
18446744073709551614, 18446744073709551612, 18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0,
|
||||
18446744073709551612, 18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0,
|
||||
18446744073709551608, 18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0,
|
||||
18446744073709551600, 18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0,
|
||||
18446744073709551584, 18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0, 0,
|
||||
18446744073709551552, 18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0, 0, 0,
|
||||
18446744073709551488, 18446744073709551360, 18446744073709551104, 18446744073709550592, 18446744073709549568, 18446744073709547520, 18446744073709543424, 18446744073709535232, 18446744073709518848, 18446744073709486080, 18446744073709420544, 18446744073709289472, 18446744073709027328, 18446744073708503040, 18446744073707454464, 18446744073705357312, 18446744073701163008, 18446744073692774400, 18446744073675997184, 18446744073642442752, 18446744073575333888, 18446744073441116160, 18446744073172680704, 18446744072635809792, 18446744071562067968, 18446744069414584320, 18446744065119617024, 18446744056529682432, 18446744039349813248, 18446744004990074880, 18446743936270598144, 18446743798831644672, 18446743523953737728, 18446742974197923840, 18446741874686296064, 18446739675663040512, 18446735277616529408, 18446726481523507200, 18446708889337462784, 18446673704965373952, 18446603336221196288, 18446462598732840960, 18446181123756130304, 18445618173802708992, 18444492273895866368, 18442240474082181120, 18437736874454810624, 18428729675200069632, 18410715276690587648, 18374686479671623680, 18302628885633695744, 18158513697557839872, 17870283321406128128, 17293822569102704640, 16140901064495857664, 13835058055282163712, 9223372036854775808, 0, 0, 0, 0, 0, 0, 0 ]
|
||||
}
|
||||
}
|
||||
DATASET "DummyDBL" {
|
||||
DATATYPE H5T_ARRAY { [8][8] H5T_IEEE_F64BE }
|
||||
DATASPACE SCALAR
|
||||
DATA {
|
||||
(0): [ 0, 1.17284e-90, 1.17284e-90, 1.05571e+165, 1.17284e-90, -3.23633e+292, 1.05571e+165, -3.55182e+37,
|
||||
3.03865e-319, 3.71772e+239, -5.54961e+165, 8.81586e+91, -8.11368e+22, 1.28325e-51, -1.9407e-125, 2.0391e-194,
|
||||
3.16202e-322, 4.49083e-30, 3.71772e+239, -6.38938e-104, -5.54961e+165, 9.82903e-178, 8.81586e+91, -9.79926e-247,
|
||||
1.04347e-320, 4.49083e-30, 3.71772e+239, -6.38938e-104, -5.54961e+165, 9.82903e-178, 8.81586e+91, -9.79926e-247,
|
||||
2.05531e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31,
|
||||
2.56124e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31,
|
||||
3.06716e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31,
|
||||
3.57308e-320, 2.30888e-169, 4.49083e-30, 1.26564e+105, 3.71772e+239, -3.43143e-243, -6.38938e-104, -1.85109e+31 ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
tools/testfiles/tscalarintsize.h5
Normal file
BIN
tools/testfiles/tscalarintsize.h5
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user