-
-
Notifications
You must be signed in to change notification settings - Fork 246
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 issue with unmatched messages in ph5diff #3719
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 |
---|---|---|
|
@@ -127,7 +127,7 @@ ph5diff_worker(int nID) | |
char filenames[2][MAX_FILENAME]; | ||
|
||
/* Retrieve filenames */ | ||
MPI_Recv(filenames, MAX_FILENAME * 2, MPI_CHAR, 0, MPI_ANY_TAG, MPI_COMM_WORLD, &Status); | ||
MPI_Recv(filenames, MAX_FILENAME * 2, MPI_CHAR, 0, MPI_TAG_PARALLEL, MPI_COMM_WORLD, &Status); | ||
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. Match |
||
|
||
/* disable error reporting */ | ||
H5E_BEGIN_TRY | ||
|
@@ -173,7 +173,7 @@ ph5diff_worker(int nID) | |
|
||
/* When get token, send all of our output to the manager task and then return the token */ | ||
for (i = 0; i < outBuffOffset; i += PRINT_DATA_MAX_SIZE) | ||
MPI_Send(outBuff + i, PRINT_DATA_MAX_SIZE, MPI_BYTE, 0, MPI_TAG_PRINT_DATA, | ||
MPI_Send(outBuff + i, PRINT_DATA_MAX_SIZE, MPI_CHAR, 0, MPI_TAG_PRINT_DATA, | ||
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 manager rank specifies |
||
MPI_COMM_WORLD); | ||
|
||
/* An overflow file exists, so we send it's output to the manager too and then delete it */ | ||
|
@@ -188,15 +188,15 @@ ph5diff_worker(int nID) | |
while ((tmp = getc(overflow_file)) >= 0) { | ||
*(out_data + i++) = (char)tmp; | ||
if (i == PRINT_DATA_MAX_SIZE) { | ||
MPI_Send(out_data, PRINT_DATA_MAX_SIZE, MPI_BYTE, 0, MPI_TAG_PRINT_DATA, | ||
MPI_Send(out_data, PRINT_DATA_MAX_SIZE, MPI_CHAR, 0, MPI_TAG_PRINT_DATA, | ||
MPI_COMM_WORLD); | ||
i = 0; | ||
memset(out_data, 0, PRINT_DATA_MAX_SIZE); | ||
} | ||
} | ||
|
||
if (i > 0) | ||
MPI_Send(out_data, PRINT_DATA_MAX_SIZE, MPI_BYTE, 0, MPI_TAG_PRINT_DATA, | ||
MPI_Send(out_data, PRINT_DATA_MAX_SIZE, MPI_CHAR, 0, MPI_TAG_PRINT_DATA, | ||
MPI_COMM_WORLD); | ||
|
||
fclose(overflow_file); | ||
|
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.
This same loop already exists in
phdiff_dismiss_workers
intools/lib/h5diff.c
and gets called by the manager rank on ph5diff exit. This loop was just causing the same messages to be sent twice and end up unmatched.