Skip to content

cpu: Update RISC-V condition to require GCC version 14 or higher #14032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ggml/src/ggml-cpu/ggml-cpu-quants.c
Original file line number Diff line number Diff line change
Expand Up @@ -3121,7 +3121,7 @@ void ggml_vec_dot_q5_0_q8_0(int n, float * GGML_RESTRICT s, size_t bs, const voi
}

sumf = hsum_float_8(acc);
#elif defined(__riscv_v)
#elif defined(__riscv_v) && (__GNUC__ >= 14)
size_t vl;
size_t vlenb = __riscv_vlenb();

Expand Down Expand Up @@ -3460,7 +3460,7 @@ void ggml_vec_dot_q5_1_q8_1(int n, float * GGML_RESTRICT s, size_t bs, const voi
}

sumf = hsum_float_8(acc) + summs;
#elif defined(__riscv_v)
#elif defined(__riscv_v) && (__GNUC__ >= 14)
size_t vl;
size_t vlenb = __riscv_vlenb();

Expand Down