Skip to content

Commit e7f7eb1

Browse files
author
Alberto Cabrera
committed
Corrected wrong type definition for q8 tile
1 parent 68c12d9 commit e7f7eb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ggml/src/ggml-sycl/gemv_q4_k_q8_1.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ __dpct_inline__ static void q4_K_q8_1_tiled_gemvq(
149149
const int chunk_idx = local_id / 2;
150150
const int superblock_idx = tile_coord_begin / 64;
151151
const int q8_block_idx = superblock_idx * 8 + chunk_idx;
152-
const uint q8_dm_offset = block_q8_t::get_d_offset(1, ncols, q8_block_idx).first;
152+
const int q8_dm_offset = block_q8_t::get_d_offset(1, ncols, q8_block_idx).first;
153153
const ggml_half2 * q8_dm =
154154
reinterpret_cast<const ggml_half2 *>(reinterpret_cast<const uint8_t *>(input) + q8_dm_offset);
155155
const float d8 = static_cast<float>(q8_dm->x());
@@ -162,7 +162,7 @@ __dpct_inline__ static void q4_K_q8_1_tiled_gemvq(
162162
#pragma unroll(sblock_coord_width / Traits::columns)
163163
for (size_t w = 0; w < sblock_coord_width / Traits::columns; w++) {
164164
q4_tile_t q4_tile;
165-
uint q8_tile;
165+
uint32_t q8_tile;
166166

167167
const int w_coord = tile_coord_begin + coord_stride * w;
168168
const auto q4_coord = coord_t{ w_coord, tile_row_begin };

0 commit comments

Comments
 (0)