From: Johannes Gäßler Date: Wed, 23 Jul 2025 16:22:30 +0000 (+0200) Subject: CUDA: fix compilation with GGML_CUDA_F16 (llama/14837) X-Git-Tag: upstream/0.0.2404~52 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=e64ed53d574ba802fcc6e0976852bf8c4f8c1495;p=pkg%2Fggml%2Fsources%2Fggml CUDA: fix compilation with GGML_CUDA_F16 (llama/14837) --- diff --git a/src/ggml-cuda/convert.cu b/src/ggml-cuda/convert.cu index 1b4a71ba..15c92786 100644 --- a/src/ggml-cuda/convert.cu +++ b/src/ggml-cuda/convert.cu @@ -31,8 +31,8 @@ static __global__ void dequantize_block(const void * __restrict__ vx, dst_t * __ dequantize_kernel(vx, ib, iqs, v); const int64_t iy0 = ((i03*ne02 + i02)*ne01 + i01)*ne00 + iybs + iqs; - y[iy0 + 0] = v.x; - y[iy0 + y_offset] = v.y; + y[iy0 + 0] = float(v.x); + y[iy0 + y_offset] = float(v.y); } template