[v0.11] Add support for printing EUs (currently only in Gen9/Gen9.5)

This commit is contained in:
Dr-Noob
2021-12-08 11:15:59 +01:00
parent 2034bac006
commit 844377f17a
8 changed files with 61 additions and 8 deletions

View File

@@ -15,6 +15,7 @@ struct gpu_info* get_gpu_info_intel() {
gpu->pci = get_pci_from_pciutils(devices, PCI_VENDOR_ID_INTEL);
gpu->arch = get_uarch_from_pci(gpu->pci);
gpu->name = get_name_from_uarch(gpu->arch);
gpu->topo_i = get_topology_info(gpu->arch);
return gpu;
}
@@ -26,3 +27,7 @@ bool print_gpu_intel(struct gpu_info* gpu) {
return true;
}
char* get_str_eu(struct gpu_info* gpu) {
return get_str_generic(gpu->topo_i->subslices * gpu->topo_i->eu_subslice);
}