Skip to content

Commit c0d42d5

Browse files
committed
Fixed wrong static_cast inside kernel
1 parent 31eec7c commit c0d42d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-sycl/convert.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static void convert_unary_nc(const void * __restrict__ vx, dst_t * __restrict__
455455

456456
#pragma unroll
457457
for (int64_t i00 = global_id; i00 < ne00; i00 += work_group_size * item_ct1.get_group_range(2)) {
458-
y[iy + i00] = static_cast<float>(x[ix + i00]);
458+
y[iy + i00] = static_cast<dst_t>(x[ix + i00]);
459459
}
460460
}
461461

0 commit comments

Comments
 (0)