fix group level

This commit is contained in:
oscar 2023-03-03 17:26:14 -05:00
parent 8c8d701b47
commit 6d42252f19

2
topo.c
View File

@ -102,7 +102,7 @@ tobj_preorder_dump(struct topo_obj * root, int indent) {
flag_str = "NONE"; flag_str = "NONE";
} }
printf("%*scache-level: %d, flag: %s, cores: ", indent * 4, "", root->cache_level, flag_str); printf("%*sgroup level: %d, cache-level: %d, flag: %s, cores: ", indent * 4, "", root->level, root->cache_level, flag_str);
while (CPU_FFS(&tmpset) != 0) { while (CPU_FFS(&tmpset) != 0) {
int u = (int)CPU_FFS(&tmpset); int u = (int)CPU_FFS(&tmpset);
printf("%d ", u - 1); printf("%d ", u - 1);