Skip to content

Commit d07dc44

Browse files
committed
addressed comment
1 parent 95c8b9c commit d07dc44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-cuda/dmmv.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ static __device__ void convert_f16(const void * vx, const int64_t ib, const int
419419
// load 2 halfs into register in a single instruction
420420
const half2 x_reg = *((half2 *) &(x[ib + iqs]));
421421
// automatic half -> float type cast if dfloat == float
422-
v.x = x_reg.x;
423-
v.y = x_reg.y;
422+
v.x = __low2float(x_reg);
423+
v.y = __high2float(x_reg);
424424
}
425425

426426
static constexpr __device__ dequantize_kernel_t get_dequantize_kernel(ggml_type type) {

0 commit comments

Comments
 (0)