Skip to content

Commit 404b9cd

Browse files
authored
Merge pull request #11018 from wckzhang/fixhmemcheck
mtl/ofi: Fix FI_HMEM bit check
2 parents ff62b05 + 49e17cb commit 404b9cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/mca/mtl/ofi/mtl_ofi_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
738738

739739
if (FI_ENODATA == -ret) {
740740
/* Attempt selecting a provider without FI_HMEM hints */
741-
if (hints->caps |= FI_HMEM) {
741+
if (hints->caps & FI_HMEM) {
742742
hints->caps &= ~FI_HMEM;
743743
hints->domain_attr->mr_mode &= ~FI_MR_HMEM;
744744
goto no_hmem;

0 commit comments

Comments
 (0)