]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml: allow casting between f32 and i32 (llama/15783)
authorXuan-Son Nguyen <redacted>
Mon, 8 Sep 2025 10:33:01 +0000 (17:33 +0700)
committerGeorgi Gerganov <redacted>
Sat, 20 Sep 2025 10:33:50 +0000 (13:33 +0300)
commit1f2faef84bd37a810015db657498c977435bed80
treea8c917139a2520a73b1ac21efa90c0ad151e778b
parent8c834f2ba4aeda4dabf42e01a0ceaa40baf1a57b
ggml: allow casting between f32 and i32 (llama/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:
include/ggml-cpu.h
include/ggml.h
src/ggml-cpu/ggml-cpu.c
src/ggml-cpu/ops.cpp
src/ggml-cuda/convert.cuh
src/ggml-cuda/cpy.cu
src/ggml-cuda/ggml-cuda.cu
src/ggml-metal/ggml-metal.m
src/ggml-metal/ggml-metal.metal
src/ggml-vulkan/ggml-vulkan.cpp
src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp
tests/test-backend-ops.cpp