[v0.01] Detecting uarch. Looks like getting manufacturing process is much harder since we need GPU chip name

This commit is contained in:
Dr-Noob
2021-08-12 15:51:12 +02:00
parent a15f20a2cc
commit 8bc37d9d71
4 changed files with 111 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ struct cache {
};
struct topology {
int32_t shared_mp;
int32_t streaming_mp;
int32_t cores_per_mp;
int32_t cuda_cores;
};

View File

@@ -54,9 +54,9 @@ int main(int argc, char* argv[]) {
return EXIT_FAILURE;
printf("Name: %s\n", get_str_gpu_name(gpu));
printf("Microarchitecture: %s\n", get_str_uarch(gpu));
printf("Compute Capability: %s\n", get_str_cc(gpu));
printf("Technology: %s\n", get_str_process(gpu));
printf("Microarchitecture: %s\n", get_str_uarch(gpu->arch));
printf("Compute Capability: %s\n", get_str_cc(gpu->arch));
printf("Technology: %s\n", get_str_process(gpu->arch));
printf("Max Frequency: %s\n", get_str_freq(gpu));
printf("SM: %s\n", get_str_sm(gpu));
printf("Cores/MP: %s\n", get_str_cores_sm(gpu));