Skip to content

Commit b284197

Browse files
CUDA: fix compilation with GGML_CUDA_F16 (ggml-org#14837)
1 parent 221c0e0 commit b284197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-cuda/convert.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ static __global__ void dequantize_block(const void * __restrict__ vx, dst_t * __
3131
dequantize_kernel(vx, ib, iqs, v);
3232

3333
const int64_t iy0 = ((i03*ne02 + i02)*ne01 + i01)*ne00 + iybs + iqs;
34-
y[iy0 + 0] = v.x;
35-
y[iy0 + y_offset] = v.y;
34+
y[iy0 + 0] = float(v.x);
35+
y[iy0 + y_offset] = float(v.y);
3636
}
3737

3838
template <bool need_check>

0 commit comments

Comments
 (0)