Skip to content

Commit

Permalink
fix exploding idle ctxs array
Browse files Browse the repository at this point in the history
Signed-off-by: zhongyuan chen <zchen987@gatech.edu>
  • Loading branch information
zhongyuan chen committed Jan 28, 2025
1 parent ecd206d commit c2431d3
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 c2431d3

Please sign in to comment.