We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39a60e1 + f36d0b6 commit c820cd6Copy full SHA for c820cd6
src/mpid/common/sched/mpidu_sched.c
@@ -178,8 +178,10 @@ int MPIDU_Sched_next_tag(MPIR_Comm * comm_ptr, int *tag)
178
if (start != MPI_UNDEFINED) {
179
MPID_THREAD_CS_ENTER(VCI, MPIDIU_THREAD_SCHED_LIST_MUTEX);
180
DL_FOREACH(all_schedules.head, elt) {
181
- if (elt->tag >= start && elt->tag < end) {
182
- MPIR_ERR_SETANDJUMP(mpi_errno, MPI_ERR_OTHER, "**toomanynbc");
+ if (comm_ptr == elt->req->comm) {
+ if (elt->tag >= start && elt->tag < end) {
183
+ MPIR_ERR_SETANDJUMP(mpi_errno, MPI_ERR_OTHER, "**toomanynbc");
184
+ }
185
}
186
187
MPID_THREAD_CS_EXIT(VCI, MPIDIU_THREAD_SCHED_LIST_MUTEX);
0 commit comments