From 1f0283e3b04c74af58f9c15c42816628001814b0 Mon Sep 17 00:00:00 2001 From: Brice Goglin Date: Tue, 19 Jul 2022 21:55:37 +0200 Subject: [PATCH] levelzero: fix subdevice info properties Thanks to Jonathan Peyton for the fix. Signed-off-by: Brice Goglin --- hwloc/topology-levelzero.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwloc/topology-levelzero.c b/hwloc/topology-levelzero.c index 4cb8ae1c69..a059d73368 100644 --- a/hwloc/topology-levelzero.c +++ b/hwloc/topology-levelzero.c @@ -461,7 +461,7 @@ hwloc_levelzero_discover(struct hwloc_backend *backend, struct hwloc_disc_status snprintf(tmp, sizeof(tmp), "%u", k); hwloc_obj_add_info(subosdevs[k], "LevelZeroSubdeviceID", tmp); - hwloc__levelzero_properties_get(subh[j], subosdevs[k], sysman_maybe_missing, NULL); + hwloc__levelzero_properties_get(subh[k], subosdevs[k], sysman_maybe_missing, NULL); hwloc__levelzero_cqprops_get(subh[k], subosdevs[k]); }