Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move h5_test_init() calls after MPI_Init #4988

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions testpar/t_pmulti_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,13 +650,13 @@ main(int argc, char *argv[])
unsigned i;
int ret;

h5_test_init();

/* Initialize MPI */
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);

h5_test_init();

/* Generate random number seed, if rank 0 */
if (MAINPROCESS)
seed = (unsigned)time(NULL);
Expand Down
4 changes: 2 additions & 2 deletions testpar/t_select_io_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -4086,13 +4086,13 @@ main(int argc, char *argv[])
unsigned select;
unsigned mwbuf;

h5_test_init();

/* Initialize MPI */
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);

h5_test_init();

if ((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0)
P_TEST_ERROR;

Expand Down
Loading