Skip to content

Commit 4906c76

Browse files
committed
Update VFD for HDF5 1.13.2 and later
1 parent 18e5c8e commit 4906c76

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/H5FDgds.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ static herr_t H5FD__gds_ctl(H5FD_t *_file, uint64_t op_code, uint64_t flags, co
303303
void **output);
304304

305305
static const H5FD_class_t H5FD_gds_g = {
306+
H5FD_CLASS_VERSION, /* struct version */
306307
H5FD_GDS_VALUE, /* value */
307308
H5FD_GDS_NAME, /* name */
308309
MAXADDR, /* maxaddr */
@@ -331,6 +332,10 @@ static const H5FD_class_t H5FD_gds_g = {
331332
H5FD__gds_get_handle, /* get_handle */
332333
H5FD__gds_read, /* read */
333334
H5FD__gds_write, /* write */
335+
NULL, /* read_vector */
336+
NULL, /* write_vector */
337+
NULL, /* read_selection */
338+
NULL, /* write_selection */
334339
H5FD__gds_flush, /* flush */
335340
H5FD__gds_truncate, /* truncate */
336341
H5FD__gds_lock, /* lock */
@@ -1945,7 +1950,7 @@ H5FD__gds_ctl(H5FD_t *_file, uint64_t op_code, uint64_t flags, const void *input
19451950

19461951
switch (op_code) {
19471952
/* Driver-level memory copy */
1948-
case H5FD_CTL__MEM_COPY:
1953+
case H5FD_CTL_MEM_COPY:
19491954
{
19501955
const H5FD_ctl_memcpy_args_t *copy_args = (const H5FD_ctl_memcpy_args_t *)input;
19511956
enum cudaMemcpyKind cpyKind;
@@ -1981,7 +1986,7 @@ H5FD__gds_ctl(H5FD_t *_file, uint64_t op_code, uint64_t flags, const void *input
19811986

19821987
/* Unknown op code */
19831988
default:
1984-
if (flags & H5FD_CTL__FAIL_IF_UNKNOWN_FLAG)
1989+
if (flags & H5FD_CTL_FAIL_IF_UNKNOWN_FLAG)
19851990
H5FD_GDS_GOTO_ERROR(H5E_VFL, H5E_FCNTL, FAIL, "unknown op_code and fail if unknown flag is set");
19861991
break;
19871992
}

0 commit comments

Comments
 (0)