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.
1 parent ecd206d commit 965960cCopy full SHA for 965960c
oshmem/mca/spml/ucx/spml_ucx.c
@@ -1137,7 +1137,7 @@ int mca_spml_ucx_ctx_create(long options, shmem_ctx_t *ctx)
1137
/* Check if we have an idle context to reuse */
1138
SHMEM_MUTEX_LOCK(mca_spml_ucx.internal_mutex);
1139
for (i = 0; i < idle_array->ctxs_count; i++) {
1140
- if (idle_array->ctxs[i]->options & options) {
+ if (idle_array->ctxs[i]->options == options) {
1141
ucx_ctx = idle_array->ctxs[i];
1142
_ctx_remove(idle_array, ucx_ctx, i);
1143
break;
0 commit comments