Skip to content

Commit 117e135

Browse files
authoredMar 10, 2025··
fix copy for large arrays (#1953)
1 parent 3c3e558 commit 117e135

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎mlx/backend/metal/jit_kernels.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,13 @@ MTL::ComputePipelineState* get_copy_kernel(
176176
auto out_type = get_type_string(out.dtype());
177177
kernel_source +=
178178
get_template_definition("s_" + lib_name, "copy_s", in_type, out_type);
179+
kernel_source +=
180+
get_template_definition("s2_" + lib_name, "copy_s2", in_type, out_type);
179181
kernel_source +=
180182
get_template_definition("v_" + lib_name, "copy_v", in_type, out_type);
183+
kernel_source +=
184+
get_template_definition("v2_" + lib_name, "copy_v2", in_type, out_type);
185+
181186
kernel_source += get_template_definition(
182187
"g1_" + lib_name, "copy_g_nd1", in_type, out_type, "int");
183188
kernel_source += get_template_definition(

0 commit comments

Comments
 (0)
Please sign in to comment.