Skip to content

Commit

Permalink
linux: fix the KNL cache depth when exposed as a memory-side cache
Browse files Browse the repository at this point in the history
Should be 1, instead of inheriting 3 from the CPU-cache case.

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit b2a7fcf)
  • Loading branch information
bgoglin committed Jul 23, 2020
1 parent a6cfb85 commit 809129d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hwloc/topology-linux.c
Expand Up @@ -3633,6 +3633,7 @@ hwloc_linux_knl_add_cluster(struct hwloc_topology *topology,
} else {
/* make it a real mscache */
cache->type = HWLOC_OBJ_MEMCACHE;
cache->depth = 1;
if (cluster)
hwloc__attach_memory_object(topology, cluster, cache, hwloc_report_os_error);
else
Expand Down

0 comments on commit 809129d

Please sign in to comment.