Skip to content

Commit b2a7fcf

Browse files
committed
linux: fix the KNL cache depth when exposed as a memory-side cache
Should be 1, instead of inheriting 3 from the CPU-cache case. Signed-off-by: Brice Goglin <[email protected]>
1 parent 17747f9 commit b2a7fcf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hwloc/topology-linux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3633,6 +3633,7 @@ hwloc_linux_knl_add_cluster(struct hwloc_topology *topology,
36333633
} else {
36343634
/* make it a real mscache */
36353635
cache->type = HWLOC_OBJ_MEMCACHE;
3636+
cache->depth = 1;
36363637
if (cluster)
36373638
hwloc__attach_memory_object(topology, cluster, cache, hwloc_report_os_error);
36383639
else

0 commit comments

Comments
 (0)