-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Fix ph5diff tests for MPIEXEC_MAX_NUMPROCS=1 #3407
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ main(int argc, char *argv[]) | |
MPI_Comm_size(MPI_COMM_WORLD, &g_nTasks); | ||
|
||
if (g_nTasks == 1) { | ||
printf("Only 1 task available...doing serial diff\n"); | ||
fprintf(stderr, "Only 1 task available...doing serial diff\n"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This output statement makes it so the same output diff reference files can't be used between h5diff and ph5diff testing. Move this print statement to stderr since it doesn't seem that important anyway. |
||
|
||
g_Parallel = 0; | ||
|
||
|
@@ -279,11 +279,13 @@ h5diff_exit(int status) | |
phdiff_dismiss_workers(); | ||
MPI_Barrier(MPI_COMM_WORLD); | ||
} | ||
MPI_Finalize(); | ||
status = EXIT_SUCCESS; /* Reset exit status, since some mpiexec commands generate output on failure | ||
status */ | ||
} | ||
|
||
MPI_Finalize(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The call to MPI_Finalize() needed to be moved outside the above block. Otherwise it wouldn't be called when run with |
||
|
||
status = | ||
EXIT_SUCCESS; /* Reset exit status, since some mpiexec commands generate output on failure status */ | ||
|
||
h5tools_close(); | ||
|
||
/* Always exit(0), since MPI implementations do weird stuff when they | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having these test arguments as part of TEST_PROGRAM was causing CMake to incorrectly interpret the test command. I'm not sure that the ph5diff tests were running correctly to begin with. Setting MPIEXEC_MAX_NUMPROCS=1 shows this issue by making all the ph5diff tests fail.