[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

@@ -148,3 +148,10 @@ char* get_str_peak_performance_tensor(struct gpu_info* gpu) {
return get_str_peak_performance_generic(gpu->peak_performance_t);
}
char* get_str_generic(int32_t data) {
// Largest int is 10, +1 for possible negative, +1 for EOL
uint32_t max_size = 12;
char* dummy = (char *) ecalloc(max_size, sizeof(char));
snprintf(dummy, max_size, "%d", data);
return dummy;
}