From 06350c31c780d6ea485f506032aea6ff8809e38a Mon Sep 17 00:00:00 2001 From: Laurent Mazare Date: Tue, 12 Nov 2024 17:10:12 +0100 Subject: Add some missing index-select metal kernels. (#2613) * Add some missing index-select metal kernels. * Make some matrix contiguous pre-matmul. --- candle-metal-kernels/src/indexing.metal | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'candle-metal-kernels') diff --git a/candle-metal-kernels/src/indexing.metal b/candle-metal-kernels/src/indexing.metal index 9eee97ca..c14f2c1f 100644 --- a/candle-metal-kernels/src/indexing.metal +++ b/candle-metal-kernels/src/indexing.metal @@ -193,12 +193,16 @@ INDEX_OP(is_i64_f16, int64_t, half) INDEX_OP(is_i64_bf16, int64_t, bfloat) #endif +INDEX_OP(is_u32_u8, uint32_t, uint8_t) +INDEX_OP(is_u32_u32, uint32_t, uint32_t) INDEX_OP(is_u32_f32, uint32_t, float) INDEX_OP(is_u32_f16, uint32_t, half) #if defined(__HAVE_BFLOAT__) INDEX_OP(is_u32_bf16, uint32_t, bfloat) #endif +INDEX_OP(is_u8_u8, uint8_t, uint8_t) +INDEX_OP(is_u8_u32, uint8_t, uint32_t) INDEX_OP(is_u8_f32, uint8_t, float) INDEX_OP(is_u8_f16, uint8_t, half) #if defined(__HAVE_BFLOAT__) -- cgit v1.2.3