Skip to content

Commit

Permalink
fix exploding idle ctxs array Signed-off-by: John Chen zhongchen530@g…
Browse files Browse the repository at this point in the history
…mail.com
  • Loading branch information
zhongyuan chen committed Jan 28, 2025
1 parent ecd206d commit 6917230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oshmem/mca/spml/ucx/spml_ucx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ int mca_spml_ucx_ctx_create(long options, shmem_ctx_t *ctx)
/* Check if we have an idle context to reuse */
SHMEM_MUTEX_LOCK(mca_spml_ucx.internal_mutex);
for (i = 0; i < idle_array->ctxs_count; i++) {
if (idle_array->ctxs[i]->options & options) {
if (idle_array->ctxs[i]->options == options) {
ucx_ctx = idle_array->ctxs[i];
_ctx_remove(idle_array, ucx_ctx, i);
break;
Expand Down

0 comments on commit 6917230

Please sign in to comment.