llama.cpp Bug - 在RISC-V平台上无法再构建Vulkan后端

fumotvh3  于 5个月前  发布在  其他
关注(0)|答案(5)|浏览(140)

发生了什么?
Bug:无法在RISC-V平台上构建vulkan后端

名称和版本

git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
apt-get install cmake
cmake -B build -DGGML_VULKAN=1
cmake --build build --config Release -j8

您正在看到问题的操作系统是什么?

  • 无响应*

相关日志输出

Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_f32_f16_aligned_fp32.spv -DB_TYPE=f16vec4 -DDATA_A_F32=1 -DD_TYPE=float -DFLOAT_TYPE=float -DLOAD_VEC_A=4 -DLOAD_VEC_B=4

sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found

cannot compile matmul_f32_f32_aligned_fp32

Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_f32_f32_aligned_fp32.spv -DB_TYPE=vec4 -DDATA_A_F32=2 -DD_TYPE=float -DFLOAT_TYPE=float -DLOAD_VEC_A=4 -DLOAD_VEC_B=4
vhipe2zx

vhipe2zx1#

无法编译matmul_f32_f16_aligned_fp32,因为找不到Vulkan_GLSLC_EXECUTABLE。请确保已经正确安装了Vulkan GLSL Compiler,并将其添加到系统路径中。
无法编译matmul_q5_1_f32_aligned_fp32,因为Vulkan_GLSLC_EXECUTABLE未找到。请检查Vulkan_GLSLC_EXECUTABLE的路径是否正确。
翻译结果:无法编译matmul_q4_0_f32_aligned_fp32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_id_f32_f16_fp32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_q8_0_f32_aligned,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_q3_k_f32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_f16_f32_aligned,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_q5_1_f32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_q6_k_f32_aligned,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_id_f32_f16_fp32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_q4_0_f32_aligned_fp32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到,无法编译matmul_q4_k_f32_aligned,Vulkan_GLSLC_EXECUTABLE-NOTFOUND:未找到。
翻译结果:无法编译matmul_id_q5_k_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q5_k_f32.spv -DB_TYPE=float -DDATA_A_Q5_K=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q6_k_f32_aligned
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q6_k_f32_aligned.spv -DB_TYPE=mat2x4 -DDATA_A_Q6_K=2 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t -DLOAD_VEC_A=2 -DLOAD_VEC_B=8 -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q5_k_f32_aligned
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q5_k_f32_aligned.spv -DB_TYPE=mat2x4 -DDATA_A_Q5_K=2 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t -DLOAD_VEC_A=2 -DLOAD_VEC_B=8 -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译mul_mat_vec
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat.spv -DB_TYPE=float -DDATA,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z = (0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0)
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul.spv -DB_TYPE=float -DDATA,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z = (0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0),(0)
翻译结果:无法编译matmul_id_q6_k_f32_aligned_fp32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q6_k_f32_aligned_fp32.spv -DB_TYPE=vec4 -DDATA_A_Q6_K=2 -DD_TYPE=float -DFLOAT_TYPE=float -DLOAD_VEC_A=2 -DLOAD_VEC_B=4 -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译dequant_q8_0,Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/dequant_q8_0.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/dequant_q8_0.spv -DDATA_A_Q8_0=1 -DD_TYPE=float16_t -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q6_k_f32,Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q6_k_f32.spv -DB_TYPE=float -DDATA_A_Q6_K=1 -DD_TYPE=float -DFLOAT_TYPE=float -DLOAD_VEC_A=2 -DLOAD_VEC_B=4 -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q4_1,Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q4_1.spv -DB_TYPE=float -DDATA_A_Q4_1=1 -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q2,Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q2.spv -DB_TYPE=float -DDATA_A_Q2=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16t
sh: 1: Vulkan_GLSLC
翻译结果:Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_q4_0_f32.spv -DB_TYPE=float -DDATA_A_Q4_0=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_f32_f16
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_f32_f16.spv -DB_TYPE=float16_t -DDATA_A_F32=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_f32_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_f32_f32.spv -DB_TYPE=float -DDATA_A_F32=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_f16_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_f16_f32.spv -DB_TYPE=float -DDATA_A_F16=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_q5_0_f32_aligned
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_q5_0_f32_aligned.spv -DB_TYPE=mat2x4 -DDATA_A_Q5_0=2 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t -DLOAD_VEC_A=2 -DLOAD_VEC_B=8
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_q5_1_f32_aligned
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_q5_1_f32_aligned.spv -DB_TYPE=mat2x4 -DDATA_A_Q5_1=2 -DD
无法编译matmul_id_f32_f16_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE。请检查Vulkan_GLSLC_EXECUTABLE是否已正确安装并设置环境变量。
翻译结果:
无法编译matmul_f16_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_q4_0_f32_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_f32_f32,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_f16_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_f16_f32,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_q5_0_f32_aligned_fp32,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_q4_0_f32_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_q4_1_f32,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_q4_0_f32,因为找不到Vulkan_GLSLC_EXECUTABLE。
无法编译matmul_id_f16_f32_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE。
翻译结果:无法编译matmul_id_q8_0_f32_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q5_0_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_f32_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q5_1_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q8_0_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q4_1_f32_aligned,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q2_k_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q5_0_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q4_k_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q4_k_f32_fp32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。

翻译结果:无法编译matmul_id_q4_k_f32,因为找不到Vulkan_GLSLC_EXECUTABLE-NOTFOUND。
翻译结果:无法编译matmul_id_q3_k_f32_aligned
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q3_k_f32_aligned.spv -DB_TYPE=mat2x4 -DDATA_A_Q3_K=2 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t -DLOAD_VEC_A=2 -DLOAD_VEC_B=8 -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q4_0_f32_fp32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q4_0_f32_fp32.spv -DB_TYPE=float -DDATA_A_Q4_0=1 -DD_TYPE=float -DFLOAT_TYPE=float -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q3_k_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q3_k_f32.spv -DB_TYPE=mat2x4 -DDATA_A_Q3_K=2 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t -DLOAD_VEC_A=2 -DLOAD_VEC_B=8 -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译matmul_id_q6_k
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q6_k.spv -DB_TYPE=float -DDATA_A
翻译结果:

Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q8_0_f32_fp32.spv -DB_TYPE=float -DDATA_A_Q8_0=1 -DD_TYPE=float -DFLOAT_TYPE=float -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译mul_mat_vec_q4_0_f32_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_q4_0_f32_f32.spv -DB_TYPE=float -DDATA_A_Q4_0=1 -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译mul_mat_vec_q4_0_f16_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_q4_0_f16_f32.spv -DB_TYPE=float16_t -DDATA_A_Q4_0=1 -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译mul_mat_vec_id_q4_0
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_id_q4_0.spv -DB_TYPE=float -DDATA_A_Q4_0=1 -DD_TYPE=float -DFLOAT_TYPE=float -DMUL_MAT_ID=1
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译get_rows_f16_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/get_rows.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/get_rows_f16_f32.spv -DB_TYPE=int -DDATA_A
翻译结果:Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/get_rows.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/get_rows_q5_1_f32.spv -DB_TYPE=int -DDATA_A_Q5_1=1 -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译 matmul_q6_k_f32_aligned_fp32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_q6_k_f32_aligned_fp32.spv -DB_TYPE=vec4 -DDATA_A_Q6_K=2 -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译 mul_mat_vec_q5_0_f16_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_q5_0_f16_f32.spv -DB_TYPE=float16_t -DDATA_A_Q5_0=1 -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译 get_rows_q5_0
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/get_rows_quant.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/get_rows_q5_0.spv -DB_TYPE=int -DDATA_A_Q5_0=1 -DD_TYPE=float16_t
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译 dequant_q5_1
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/dequant_q5_1.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/dequant_q5_1.spv -DDATA_A_Q5_1=1 -DD_TYPE=float16_t -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译 get_rows_q4_1
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/get_rows_quant.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/get_rows_q4_1.spv -DB_TYPE=int -DDATA_A_Q4_1=1 -DD_TYPE=float16t
sh: 1: Vulkan_GLSLC
翻译结果:Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/get_rows_quant.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/get_rows_q5_1_f32.spv -DB_TYPE=int -DDATA_A_Q5_1=1 -DD_TYPE=float
无法编译mul_mat_vec_q8_0_f32_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_q8_0_f32_f32.spv -DB_TYPE=float -DDATA_A_Q8_0=1 -DD_TYPE=float -DFLOAT_TYPE=float
无法编译mul_mat_vec_id_q8_0_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_id_q8_0_f32.spv -DB_TYPE=float -DDATA_A_Q8_0=1 -DD_TYPE=float -DFLOAT_TYPE=float -DMUL_MAT_ID=1
无法编译mul_mat_vec_q8_0_f16_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_q8_0_f16_f32.spv -DB_TYPE=float16_t -DDATA_A_Q8_0=1 -DD_TYPE=float -DFLOAT_TYPE=float
无法编译mul_mat_vec_q5_1_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat
无法编译的错误信息如下:

  1. 无法找到Vulkan_GLSLC_EXECUTABLE。
  2. 无法编译dequant_q2_k。
  3. 无法编译mul_mat_vec_q3_k_f32_f32。
  4. 无法编译mul_mat_vec_id_q3_k。
  5. 无法编译mul_mat_vec_q4_k_f32_f32。
  6. 无法编译mul_mat_vec_q4_k_f16_f32。
  7. 无法编译mul_mat_vec_id_q4_k。
  8. 无法编译mul_mat_vec_id_q5_k。
  9. 无法编译mul_mat_vec_q6_k_f16_f32。
  10. 无法编译dequant_q6_k。
  11. 无法编译mul_mat_vec_q6_k_f32_f32。
  12. 无法编译dequant_q4_k。
  13. 无法编译mul_mat_vec_q5_k_f32_f32。
  14. 无法编译matmul_f16。
    翻译结果:无法编译matmul_id_q8_0_f32_aligned_fp32
    Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q8_0_f32_aligned_fp32.spv -DB_TYPE=vec4 -DDATA_A_Q8_0=2 -DD_TYPE=float -DFLOAT_TYPE=float -DLOAD_VEC_A=2 -DLOAD_VEC_B=4 -DMUL_MAT_ID=1
    sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
    无法编译split_k_reduce
    Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_split_k_reduce.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/split_k_reduce.spv
    sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
    无法编译matmul_id_q3_k_f32_aligned_fp32
    Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_id_q3_k_f32_aligned_fp32.spv -DB_TYPE=vec4 -DDATA_A_Q3_K=2 -DD_TYPE=float -DFLOAT_TYPE=float -DLOAD_VEC_A=2 -DLOAD_VEC_B=4 -DMUL_MAT_ID=1
    sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
    无法编译mul_mat_vec_nc
    Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mat_vec_nc.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/mul_mat_vec_nc_f16_f32.spv -DA_TYPE=float16_t -DB_TYPE=float -DD_TYPE=float
    sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
    无法编译dequant_q3_k
    Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/dequant_q3_k.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/dequant_q3_k.spv -DDATA_A_Q3_K=1 -DD_TYPE=float16_t -DFLOAT_TYPE=float
    sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
    无法编译dequant_q5_k
    Vulkan
    翻译结果:

Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/scale.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/scale_f32.spv -DA_TYPE=float -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译 matmul_f32_f16_aligned
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_f32_f16_aligned.spv -DB_TYPE=f16mat2x4 -DDATA_A_F32=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t -DLOAD_VEC_A=8 -DLOAD_VEC_B=8
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
div_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/div.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/div_f32.spv -DA_TYPE=float -DB_TYPE=float -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
cannot compile matmul_q8_0_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/mul_mm.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/matmul_q8_0_f32.spv -DB_TYPE=float -DDATA_A_Q8_0=1 -DD_TYPE=float -DFLOAT16=1 -DFLOAT_TYPE=float16_t
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
cannot compile diag_mask_inf_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/diag_mask.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/diag_mask_inf_f32.spv -DA_TYPE=float -DD_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
cannot compile silu_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/silu.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/silu_f32.spv -DA_TYPE=float -DD_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
cannot compile gelu_f32
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/gelu.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/gelu_f32.spv -DA_TYPE=float -DD_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
cannot compile cannot compile clamp
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root
Vulkan_GLSLC_EXECUTABLE-NOTFOUND -fshader-stage=compute --target-env=vulkan1.2 -O /root/liyong/llama.cpp/ggml/src/vulkan-shaders/sum_rows.comp -o /root/liyong/llama.cpp/build/ggml/src/vulkan-shaders.spv/sum_rows_f32.spv -DA_TYPE=float -DD_TYPE=float -DFLOAT_TYPE=float
sh: 1: Vulkan_GLSLC_EXECUTABLE-NOTFOUND: not found
无法编译 argsort_f32

uhry853o

uhry853o2#

建议可能有助于安装-从Vulkan-SDK安装glslc(Vulkan的着色器编译器)-在Ubuntu 24.04上,它可以使用apt install glslc进行安装。

aurhwmvo

aurhwmvo3#

建议-从Vulkan-SDK安装glslc(Vulkan的着色器编译器)-在Ubuntu 24.04上,它可以使用apt install glslc进行安装。
你是说在x86的Ubuntu主机上交叉编译riscv二进制文件吗?

1wnzp6jl

1wnzp6jl4#

建议-从Vulkan-SDK安装glslc(Vulkan的着色器编译器)-在Ubuntu 24.04上,可以使用apt install glslc命令进行安装。
你是说在x86架构的Ubuntu主机上交叉编译riscv二进制文件吗?
只需在用vulkan构建llama.cpp的系统上安装glslc。我已成功地在Ubuntu for Arm和Windows for Arm(原生构建,而非交叉编译)上安装/构建了当前的llama.cpp(包括7月13日发布的新cmake脚本)。我只是随机选择了Ubuntu的说明。glslc源代码似乎为https://github.com/google/shaderc

pu82cl6c

pu82cl6c5#

建议-从Vulkan-SDK安装glslc(Vulkan的着色器编译器)-在Ubuntu 24.04上,可以使用apt install glslc命令进行安装。
你是说在x86架构的Ubuntu主机上交叉编译riscv二进制文件吗?
只需在用vulkan构建llama.cpp的系统上安装glslc。我已成功地在Ubuntu for Arm和Windows for Arm(原生构建,而非交叉编译)上安装/构建了当前的llama.cpp(包括7月13日发布的新cmake脚本)。我只是随机选择了Ubuntu的说明。glslc源代码似乎是https://github.com/google/shaderc
谢谢,我会尝试的。

相关问题