Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mqy committed May 29, 2023
1 parent 567d991 commit d53f410
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion examples/mulmat-tune/bench-out/13b.q8_0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,5 @@
64 5 51 0 0 16 0
128 10 185 0 0 71 0
256 20 858 0 0 136 0
512 39 2888 0 0 316 0
512 39 2888 0 0 316 0

2 changes: 1 addition & 1 deletion examples/mulmat-tune/bench-out/7b.q4_0.blis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
128 9 180 0 0 55 0
256 19 830 0 0 255 0
512 40 2975 0 0 826 0
s

3 changes: 2 additions & 1 deletion examples/mulmat-tune/bench-out/7b.q5_0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,5 @@
64 5 51 0 0 20 0
128 10 202 0 0 72 0
256 19 706 0 0 136 0
512 40 3305 0 0 319 0
512 40 3305 0 0 319 0

8 changes: 5 additions & 3 deletions examples/mulmat-tune/mulmat-tune.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ enum ggml_backend ggml_auto_detect_backend(void) {
return GGML_BACKEND_CBLAS;
}

int ggml_get_builtin_blas_backends(int backends[]) {
int ggml_get_builtin_blas_backends(int *backends) {
if (!ggml_cpu_has_blas()) {
UNUSED(backends);
return 0;
Expand Down Expand Up @@ -577,10 +577,12 @@ int ggml_mulmat_get_task_profiles(struct ggml_task_profile **profiles,
if (src0_type == GGML_TYPE_F32) {
*profiles = ggml_mulmat_task_profiles_f32;
return ggml_mulmat_task_profiles_f32_n;
} else if (src0_type == GGML_TYPE_F16) {
}
if (src0_type == GGML_TYPE_F16) {
*profiles = ggml_mulmat_task_profiles_f16;
return ggml_mulmat_task_profiles_f32_n;
} else if (ggml_is_quantized(src0_type)) {
}
if (ggml_is_quantized(src0_type)) {
*profiles = ggml_mulmat_task_profiles_qxx;
return ggml_mulmat_task_profiles_qxx_n;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/mulmat-tune/mulmat-tune.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ int ggml_mulmat_get_task_profiles(struct ggml_task_profile **profiles,

const char *ggml_get_backend_name(/*enum ggml_backend*/ int backend);

int ggml_get_builtin_blas_backends(int backends[]);
int ggml_get_builtin_blas_backends(int *backends);

const char *ggml_get_blas_vendor(void);

Expand Down
6 changes: 3 additions & 3 deletions examples/mulmat-tune/prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ function prompt {
printf "=== model: %s, threads: %s, questions: %2d ===\n" $model_name $T $q

args="-t $T -m $model_path \
-c 512 -b 1024 --keep 256 --repeat_penalty 1.0 \
--mlock --no-mmap \
-n 8 -e -p $p"
-c 512 -b 1024 --keep 256 --repeat_penalty 1.0 \
--mlock --no-mmap \
-n 8 -e -p $p"

#echo "prompt" $p

Expand Down

0 comments on commit d53f410

Please sign in to comment.