[v0.01] Retrieve memory info. All fields done except memory type (how to do it?)

This commit is contained in:
Dr-Noob
2021-08-13 22:26:55 +02:00
parent 981daef728
commit 10295f2955
4 changed files with 78 additions and 11 deletions

View File

@@ -27,7 +27,6 @@ struct cach {
};
struct cache {
struct cach* L1;
struct cach* L2;
};
@@ -38,8 +37,10 @@ struct topology {
};
struct memory {
int32_t size_bytes;
int64_t size_bytes;
MEMTYPE type;
int32_t bus_width;
int32_t freq;
};
struct gpu_info {
@@ -59,7 +60,8 @@ char* get_str_gpu_name(struct gpu_info* gpu);
char* get_str_freq(struct gpu_info* gpu);
char* get_str_memory_size(struct gpu_info* gpu);
char* get_str_memory_type(struct gpu_info* gpu);
char* get_str_l1(struct gpu_info* gpu);
char* get_str_bus_width(struct gpu_info* gpu);
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);