From e17fe65fc79303b8c6fedd1a9cbd18fc9cf66b2b Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Thu, 16 Dec 2021 17:35:15 -0600 Subject: [PATCH 1/5] added the use of collective metadata --- src/hdf5_iotest.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/hdf5_iotest.c b/src/hdf5_iotest.c index 4d50076..437d9c0 100644 --- a/src/hdf5_iotest.c +++ b/src/hdf5_iotest.c @@ -151,11 +151,9 @@ int main(int argc, char* argv[]) assert(H5Pset_create_intermediate_group(lcpl, 1) >= 0); if (size > 1 || (strncmp(config.single_process, "mpi-io-uni", 16) == 0)) - { - assert(H5Pset_fapl_mpio(fapl, MPI_COMM_WORLD, MPI_INFO_NULL) >= 0); - assert(H5Pset_all_coll_metadata_ops(fapl, 1) >= 0); - assert(H5Pset_coll_metadata_write(fapl, 1) >= 0); - } + assert(H5Pset_fapl_mpio(fapl, MPI_COMM_WORLD, MPI_INFO_NULL) >= 0); + assert(H5Pset_all_coll_metadata_ops(fapl, 1) >= 0); + assert(H5Pset_coll_metadata_write(fapl, 1) >= 0); else if (strncmp(config.single_process, "core", 16) == 0) assert(H5Pset_fapl_core(fapl, 67108864, 1) >= 0); /* 64 MB increments */ From 463cd0a2edbde92fe25d39fe2ac7bd4493e65556 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Thu, 16 Dec 2021 17:37:44 -0600 Subject: [PATCH 2/5] added the use of collective metadata --- src/hdf5_iotest.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hdf5_iotest.c b/src/hdf5_iotest.c index 437d9c0..4d50076 100644 --- a/src/hdf5_iotest.c +++ b/src/hdf5_iotest.c @@ -151,9 +151,11 @@ int main(int argc, char* argv[]) assert(H5Pset_create_intermediate_group(lcpl, 1) >= 0); if (size > 1 || (strncmp(config.single_process, "mpi-io-uni", 16) == 0)) - assert(H5Pset_fapl_mpio(fapl, MPI_COMM_WORLD, MPI_INFO_NULL) >= 0); - assert(H5Pset_all_coll_metadata_ops(fapl, 1) >= 0); - assert(H5Pset_coll_metadata_write(fapl, 1) >= 0); + { + assert(H5Pset_fapl_mpio(fapl, MPI_COMM_WORLD, MPI_INFO_NULL) >= 0); + assert(H5Pset_all_coll_metadata_ops(fapl, 1) >= 0); + assert(H5Pset_coll_metadata_write(fapl, 1) >= 0); + } else if (strncmp(config.single_process, "core", 16) == 0) assert(H5Pset_fapl_core(fapl, 67108864, 1) >= 0); /* 64 MB increments */ From a646b7557781e94bfad685ab92feccad066b1f6e Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Tue, 24 Jan 2023 13:01:43 -0600 Subject: [PATCH 3/5] Updated Node.js version github action --- .github/workflows/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd14e22..8ef2d33 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,6 +77,10 @@ jobs: echo "CPPFLAGS=-I$HOME_DIR/hdf5/include" >> $GITHUB_ENV echo "LDFLAGS=-L$HOME_DIR/hdf5/lib" >> $GITHUB_ENV + # Checks-out the repository under $GITHUB_WORKSPACE so the job can access it. + - name: Get Sources + uses: actions/checkout@v3 + ################################## # CONFIGURE (Autotools) ################################## From f2be9633bc156091b87eefaf9ce8274c5136332a Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Wed, 16 Oct 2024 10:13:07 -0500 Subject: [PATCH 4/5] clean-up --- .github/workflows/main.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ef2d33..cd14e22 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,10 +77,6 @@ jobs: echo "CPPFLAGS=-I$HOME_DIR/hdf5/include" >> $GITHUB_ENV echo "LDFLAGS=-L$HOME_DIR/hdf5/lib" >> $GITHUB_ENV - # Checks-out the repository under $GITHUB_WORKSPACE so the job can access it. - - name: Get Sources - uses: actions/checkout@v3 - ################################## # CONFIGURE (Autotools) ################################## From 8650d8114f2b122da419a16fff1f37fedf688e9f Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Mon, 23 Dec 2024 17:11:53 -0600 Subject: [PATCH 5/5] reworked hdf5 filename --- src/hdf5_iotest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hdf5_iotest.c b/src/hdf5_iotest.c index 4d50076..49963de 100644 --- a/src/hdf5_iotest.c +++ b/src/hdf5_iotest.c @@ -165,7 +165,7 @@ int main(int argc, char* argv[]) /* test collective and independent modes when parallel, and greater than 0 ranks */ if (size > 1) nmod = 1; - char hdf5_filename[strlen(config.hdf5_file+4)]; + char hdf5_filename[strlen(config.hdf5_file)+1]; /* use a macro to stop the indentation madness */ @@ -312,7 +312,7 @@ int main(int argc, char* argv[]) if (rank == 0) print_current_config(&config); - strcpy( hdf5_filename, config.hdf5_file); + strncpy( hdf5_filename, config.hdf5_file, strlen(config.hdf5_file) + 1); if(config.HDF5perCase != 0) {