@@ -104,7 +104,7 @@ const struct ggml_task_profile *ggml_mulmat_tune_select_task_profile(
104
104
prof -> stages [i ].backend );
105
105
}
106
106
printf (
107
- "\n[mulmat tune] M: %3d, N: %5d, K: %5d, backends of the "
107
+ "\n[tune] M: %3d, N: %5d, K: %5d, backends of the "
108
108
"fastest profile: %s %s %s\n" ,
109
109
M , N , K , names [0 ], names [1 ], names [2 ]);
110
110
#endif
@@ -358,7 +358,7 @@ bool ggml_mulmat_tune_validate(const struct ggml_mulmat_tune *tune,
358
358
bool ok = ggml_mulmat_tune_validate_internal (tune , model , ftype , n_threads ,
359
359
errbuf , sizeof (errbuf ));
360
360
if (!ok ) {
361
- fprintf (stderr , "[mulmat tune] error: %s. run bench again.\n" , errbuf );
361
+ fprintf (stderr , "[tune] error: %s. run bench again.\n" , errbuf );
362
362
}
363
363
364
364
return ok ;
@@ -371,7 +371,7 @@ bool ggml_mulmat_tune_read_data(struct ggml_mulmat_tune *tune, FILE *fp) {
371
371
}
372
372
373
373
if (tune -> version != GGML_MULMAT_TUNE_VERSION ) {
374
- fprintf (stderr , "[mulmat tune] version mismatch, run bench again\n" );
374
+ fprintf (stderr , "[tune] version mismatch, run bench again\n" );
375
375
return false;
376
376
}
377
377
@@ -396,7 +396,7 @@ bool ggml_mulmat_tune_read_data(struct ggml_mulmat_tune *tune, FILE *fp) {
396
396
(shape -> n_profiles * shape -> m_num );
397
397
shape -> items = malloc (item_size );
398
398
if (shape -> items == NULL ) {
399
- fprintf (stderr , "[mulmat tune] failed to allocate memory\n" );
399
+ fprintf (stderr , "[tune] failed to allocate memory\n" );
400
400
return false;
401
401
}
402
402
memset (shape -> items , 0 , item_size );
@@ -708,7 +708,7 @@ static size_t ggml_mulmat_allocate_wdata(int N, int K, char **wdata) {
708
708
709
709
if (!buf ) {
710
710
fprintf (stderr ,
711
- "[mulmat tune] error: failed to allocate %zu MiB memory" ,
711
+ "[tune] error: failed to allocate %zu MiB memory" ,
712
712
sz / 1024 / 1024 );
713
713
return 0 ;
714
714
}
@@ -745,7 +745,7 @@ bool ggml_mulmat_tune_bench(struct ggml_mulmat_tune *tune,
745
745
int n_backends = ggml_mulmat_tune_get_builtin_task_backends (backends );
746
746
if (n_backends < 2 ) {
747
747
fprintf (stderr ,
748
- "[mulmat tune] error: this program was not built with BLAS.\n" );
748
+ "[tune] error: this program was not built with BLAS.\n" );
749
749
return false;
750
750
}
751
751
@@ -770,7 +770,7 @@ bool ggml_mulmat_tune_bench(struct ggml_mulmat_tune *tune,
770
770
}
771
771
772
772
fprintf (stdout ,
773
- "[mulmat tune] model: %s, ggml ftype: %d, "
773
+ "[tune] model: %s, ggml ftype: %d, "
774
774
"n_pass: %d, n_threads: %d, n_shapes: %d, backends: %s\n" ,
775
775
params -> model .name , params -> model .ftype , params -> n_pass ,
776
776
params -> n_threads , tune -> n_shapes , buf );
@@ -871,7 +871,7 @@ bool ggml_mulmat_tune_bench(struct ggml_mulmat_tune *tune,
871
871
872
872
ggml_threading_stop (thrd_ctx );
873
873
874
- fprintf (stdout , "[mulmat tune] done, elapsed time: %d seconds.\n" ,
874
+ fprintf (stdout , "[tune] done, elapsed time: %d seconds.\n" ,
875
875
(int )(ggml_time_ms () - t0 ) / 1000 );
876
876
877
877
// output
@@ -880,7 +880,7 @@ bool ggml_mulmat_tune_bench(struct ggml_mulmat_tune *tune,
880
880
FILE * fp = fopen (params -> fname , "w" );
881
881
if (!fp ) {
882
882
fprintf (stderr ,
883
- "[mulmat tune] warn: failed to open file `%s`, print to "
883
+ "[tune] warn: failed to open file `%s`, print to "
884
884
"console instead\n\n" ,
885
885
params -> fname );
886
886
params -> output_console = 1 ;
@@ -889,12 +889,12 @@ bool ggml_mulmat_tune_bench(struct ggml_mulmat_tune *tune,
889
889
fclose (fp );
890
890
891
891
if (ok ) {
892
- fprintf (stdout , "[mulmat tune] data was written to `%s`\n" ,
892
+ fprintf (stdout , "[tune] data was written to `%s`\n" ,
893
893
params -> fname );
894
894
} else {
895
895
fprintf (
896
896
stderr ,
897
- "[mulmat tune] warn: failed to write file `%s`, print to "
897
+ "[tune] warn: failed to write file `%s`, print to "
898
898
"console instead\n\n" ,
899
899
params -> fname );
900
900
params -> output_console = 1 ;
0 commit comments