]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml: allow casting between f32 and i32 (#15783)
authorXuan-Son Nguyen <redacted>
Mon, 8 Sep 2025 10:33:01 +0000 (17:33 +0700)
committerGitHub <redacted>
Mon, 8 Sep 2025 10:33:01 +0000 (12:33 +0200)
commit9fcb29f22f5c33c04c7f0daebb24057899d67a1a
tree66ddff68c0b11b12bb017acc4c212d195d1f3afd
parent5ef22d281de9c5eaaf616874bc490b89241128cb
ggml: allow casting between f32 and i32 (#15783)

* ggml: allow casting between f32 and i32

* fix cuda

* add vulkan

* fix CPU non-cont

* add non-cont test case

* add note

* extend test number range

* correct note

* add cont version for vulkan
12 files changed:
ggml/include/ggml-cpu.h
ggml/include/ggml.h
ggml/src/ggml-cpu/ggml-cpu.c
ggml/src/ggml-cpu/ops.cpp
ggml/src/ggml-cuda/convert.cuh
ggml/src/ggml-cuda/cpy.cu
ggml/src/ggml-cuda/ggml-cuda.cu
ggml/src/ggml-metal/ggml-metal.m
ggml/src/ggml-metal/ggml-metal.metal
ggml/src/ggml-vulkan/ggml-vulkan.cpp
ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp
tests/test-backend-ops.cpp