metal : fix build and some more comments (#10229)

This commit is contained in:
Georgi Gerganov
2024-11-09 11:53:02 +02:00
committed by GitHub
parent bb38cdd8ba
commit 39a334a9aa
2 changed files with 6 additions and 4 deletions

View File

@@ -3041,6 +3041,8 @@ static void ggml_metal_encode_node(
bool use_vec_kernel = false;
// TODO: add vec kernels for (ne00%64 == 0) and maybe also for (ne00%32 == 0)
// for now avoiding mainly to keep the number of templates/kernels a bit lower
if (ne01 >= 4 || (ne00%128 != 0)) {
switch (src1->type) {
case GGML_TYPE_F16: