diff options
Diffstat (limited to 'examples/h5dsm_dset_w1m.c')
-rw-r--r-- | examples/h5dsm_dset_w1m.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/h5dsm_dset_w1m.c b/examples/h5dsm_dset_w1m.c index 42b1281..54640d8 100644 --- a/examples/h5dsm_dset_w1m.c +++ b/examples/h5dsm_dset_w1m.c @@ -12,7 +12,6 @@ int main(int argc, char *argv[]) { int i; (void)MPI_Init(&argc, &argv); - (void)daos_init(); /* Seed random number generator */ srand(time(NULL)); @@ -24,10 +23,14 @@ int main(int argc, char *argv[]) { if(0 != uuid_parse(argv[1], pool_uuid)) ERROR; + /* Initialize VOL */ + if(H5VLdaosm_init(MPI_COMM_WORLD, pool_uuid, pool_grp) < 0) + ERROR; + /* Set up FAPL */ if((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0) ERROR; - if(H5Pset_fapl_daosm(fapl, MPI_COMM_WORLD, MPI_INFO_NULL, pool_uuid, pool_grp) < 0) + if(H5Pset_fapl_daosm(fapl, MPI_COMM_WORLD, MPI_INFO_NULL) < 0) ERROR; /* Create file */ @@ -91,9 +94,11 @@ int main(int argc, char *argv[]) { free(buf); buf = NULL; + if(H5VLdaosm_term() < 0) + ERROR; + printf("Success\n"); - (void)daos_fini(); (void)MPI_Finalize(); return 0; @@ -105,11 +110,11 @@ error: H5Fclose(nfile); H5Sclose(space); H5Pclose(fapl); + H5VLdaosm_term(); } H5E_END_TRY; free(buf); - (void)daos_fini(); (void)MPI_Finalize(); return 1; } |