fix copy for large arrays (#1953)

This commit is contained in:
Awni Hannun 2025-03-10 15:04:25 -07:00 committed by GitHub
parent 3c3e558c60
commit 117e1355a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,8 +176,13 @@ MTL::ComputePipelineState* get_copy_kernel(
auto out_type = get_type_string(out.dtype());
kernel_source +=
get_template_definition("s_" + lib_name, "copy_s", in_type, out_type);
kernel_source +=
get_template_definition("s2_" + lib_name, "copy_s2", in_type, out_type);
kernel_source +=
get_template_definition("v_" + lib_name, "copy_v", in_type, out_type);
kernel_source +=
get_template_definition("v2_" + lib_name, "copy_v2", in_type, out_type);
kernel_source += get_template_definition(
"g1_" + lib_name, "copy_g_nd1", in_type, out_type, "int");
kernel_source += get_template_definition(