Skip to content

Commit bdd6a74

Browse files
authored
Merge pull request #13061 from zhongchen530/oshmem_ctx_fix
Fix exploding idle ctxs array
2 parents c66b0c7 + 965960c commit bdd6a74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oshmem/mca/spml/ucx/spml_ucx.c

Lines changed: 1 addition & 1 deletion
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)