From 6590e92f0b3b840b90909717990dbcc8ca5d16d1 Mon Sep 17 00:00:00 2001 From: Nathan Hjelm Date: Thu, 9 Jan 2025 22:17:15 -0700 Subject: [PATCH] btl/uct: fix default exclusivity (was too high) The uct btl should always loose to btl/sm for shared memory peers. This requires that the exclusivity be set below MCA_BTL_EXCLUSIVITY_HIGH (the exclusivity of btl/sm). The uct btl had its exclusivity set to MCA_BTL_EXCLUSIVITY_HIGH which is incorrect. This commit updates the exclusivity to the intended value. Signed-off-by: Nathan Hjelm --- opal/mca/btl/uct/btl_uct_component.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/mca/btl/uct/btl_uct_component.c b/opal/mca/btl/uct/btl_uct_component.c index 65060e17819..d04510a92b2 100644 --- a/opal/mca/btl/uct/btl_uct_component.c +++ b/opal/mca/btl/uct/btl_uct_component.c @@ -17,7 +17,7 @@ * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved. * Copyright (c) 2018-2024 Triad National Security, LLC. All rights * reserved. - * Copyright (c) 2019-2024 Google, LLC. All rights reserved. + * Copyright (c) 2019-2025 Google, LLC. All rights reserved. * Copyright (c) 2019 Intel, Inc. All rights reserved. * Copyright (c) 2022 IBM Corporation. All rights reserved. * $COPYRIGHT$ @@ -103,7 +103,7 @@ static int mca_btl_uct_component_register(void) #endif /* for now we want this component to lose to btl/ugni and btl/vader */ - module->super.btl_exclusivity = MCA_BTL_EXCLUSIVITY_HIGH; + module->super.btl_exclusivity = MCA_BTL_EXCLUSIVITY_HIGH - 1; return mca_btl_base_param_register(&mca_btl_uct_component.super.btl_version, &module->super); }