Skip to content

Commit 6917230

Browse files
author
zhongyuan chen
committed
fix exploding idle ctxs array Signed-off-by: John Chen [email protected]
1 parent ecd206d commit 6917230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ int mca_spml_ucx_ctx_create(long options, shmem_ctx_t *ctx)
11371137
/* Check if we have an idle context to reuse */
11381138
SHMEM_MUTEX_LOCK(mca_spml_ucx.internal_mutex);
11391139
for (i = 0; i < idle_array->ctxs_count; i++) {
1140-
if (idle_array->ctxs[i]->options & options) {
1140+
if (idle_array->ctxs[i]->options == options) {
11411141
ucx_ctx = idle_array->ctxs[i];
11421142
_ctx_remove(idle_array, ucx_ctx, i);
11431143
break;

0 commit comments

Comments
 (0)