From a94f106db0f7dbcb86a3b942d657a6ce9f91be7f Mon Sep 17 00:00:00 2001 From: Mikhail Kurnosov Date: Tue, 11 Aug 2020 08:43:47 +0700 Subject: [PATCH] Fix a typo in parsing locality string: L0 changed to L1 (`prte_hwloc_base_get_locality_string` never returns locality string with L0). Signed-off-by: Mikhail Kurnosov (cherry picked from commit 4708458d6b12d1b7a8e11fa3c3f784c545780707) --- opal/mca/hwloc/base/hwloc_base_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opal/mca/hwloc/base/hwloc_base_util.c b/opal/mca/hwloc/base/hwloc_base_util.c index 0980be39ae0..0a67f3406fa 100644 --- a/opal/mca/hwloc/base/hwloc_base_util.c +++ b/opal/mca/hwloc/base/hwloc_base_util.c @@ -2312,7 +2312,7 @@ char* opal_hwloc_base_get_location(char *locality, } else if (2 == index) { srch = "L2"; } else { - srch = "L0"; + srch = "L1"; } break; #else @@ -2323,7 +2323,7 @@ char* opal_hwloc_base_get_location(char *locality, srch = "L2"; break; case HWLOC_OBJ_L1CACHE: - srch = "L0"; + srch = "L1"; break; #endif case HWLOC_OBJ_CORE: