Skip to content

Commit eaf53c4

Browse files
author
John
committed
nc
1 parent 48a4537 commit eaf53c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ggml.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18125,24 +18125,24 @@ void ggml_graph_print_impl(const struct ggml_cgraph * cgraph, bool print_nodes,
1812518125

1812618126
char *c_perf_impact = (perf_array[i] > perf_mean + perf_sd) ? "(Slow)" : ((perf_array[i] < perf_mean - perf_sd) ? "(Fast)" : "");
1812718127

18128-
char str_device_info[512];
18128+
char str_device_info[128];
1812918129
if (node->meta.info_op_on_device >= 0 || node->src0->backend!=GGML_BACKEND_CPU)
1813018130
{
1813118131
sprintf(str_device_info, "[GPU");
1813218132
if (node->meta.cuda_perf_mal_mul_type > 0)
1813318133
{
1813418134
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");
1813618136
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");
1813818138
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");
1814018140
}
18141-
snprintf(str_device_info,127, "%s]", str_device_info);
18141+
strcat(str_device_info, "]");
1814218142
}
1814318143
else
1814418144
{
18145-
snprintf(str_device_info, 127, "[CPU]");
18145+
snprintf(str_device_info, 512, "[CPU]");
1814618146
}
1814718147
// the printed dimensions are not necessarily correct, needs an improvement
1814818148
if (print_nodes)

0 commit comments

Comments
 (0)