]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
vulkan: request round-to-even for fp16 in im2col/rope_head (#10767)
authorJeff Bolz <redacted>
Tue, 10 Dec 2024 20:23:17 +0000 (14:23 -0600)
committerGitHub <redacted>
Tue, 10 Dec 2024 20:23:17 +0000 (21:23 +0100)
commitb685daf3867c54e42a9db484d7b92619021d4510
tree30f5312e5d636fc2cca914ee3f5acf0b2b9d9e3b
parentdafae66cc242eb766797194d3c85c5e502625623
vulkan: request round-to-even for fp16 in im2col/rope_head (#10767)

Vulkan doesn't mandate a specific rounding mode, but the shader_float_controls
feature allows rounding mode to be requested if the implementation supports it.
ggml/src/ggml-vulkan/ggml-vulkan.cpp
ggml/src/ggml-vulkan/vulkan-shaders/im2col.comp
ggml/src/ggml-vulkan/vulkan-shaders/rope_head.comp
ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp