@@ -18125,24 +18125,24 @@ void ggml_graph_print_impl(const struct ggml_cgraph * cgraph, bool print_nodes,
18125
18125
18126
18126
char *c_perf_impact = (perf_array[i] > perf_mean + perf_sd) ? "(Slow)" : ((perf_array[i] < perf_mean - perf_sd) ? "(Fast)" : "");
18127
18127
18128
- char str_device_info[512 ];
18128
+ char str_device_info[128 ];
18129
18129
if (node->meta.info_op_on_device >= 0 || node->src0->backend!=GGML_BACKEND_CPU)
18130
18130
{
18131
18131
sprintf(str_device_info, "[GPU");
18132
18132
if (node->meta.cuda_perf_mal_mul_type > 0)
18133
18133
{
18134
18134
if (node->meta.cuda_perf_mal_mul_type == 1)
18135
- snprintf(str_device_info,127, "%s (%s)", str_device_info, "xQ");
18135
+ strcat( str_device_info, "xQ");
18136
18136
if (node->meta.cuda_perf_mal_mul_type == 16)
18137
- snprintf (str_device_info, 127,"%s (%s)", str_device_info, "xB16 ");
18137
+ strcat (str_device_info, "xBl16 ");
18138
18138
if (node->meta.cuda_perf_mal_mul_type == 32)
18139
- snprintf (str_device_info,127, "%s (%s)", str_device_info, "xB32 ");
18139
+ strcat (str_device_info, "xBl32 ");
18140
18140
}
18141
- snprintf (str_device_info,127, "%s]", str_device_info );
18141
+ strcat (str_device_info, "]" );
18142
18142
}
18143
18143
else
18144
18144
{
18145
- snprintf(str_device_info, 127 , "[CPU]");
18145
+ snprintf(str_device_info, 512 , "[CPU]");
18146
18146
}
18147
18147
// the printed dimensions are not necessarily correct, needs an improvement
18148
18148
if (print_nodes)
0 commit comments