[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

@@ -44,6 +44,12 @@ struct topology {
int32_t tensor_cores;
};
struct topology_i {
int32_t slices;
int32_t subslices;
int32_t eu_subslice;
};
struct memory {
int64_t size_bytes;
MEMTYPE type;
@@ -59,6 +65,7 @@ struct gpu_info {
int64_t freq;
struct pci* pci;
struct topology* topo;
struct topology_i* topo_i;
struct memory* mem;
struct cache* cach;
int64_t peak_performance;
@@ -76,5 +83,6 @@ char* get_str_memory_clock(struct gpu_info* gpu);
char* get_str_l2(struct gpu_info* gpu);
char* get_str_peak_performance(struct gpu_info* gpu);
char* get_str_peak_performance_tensor(struct gpu_info* gpu);
char* get_str_generic(int32_t data);
#endif