MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / ggml_cl_local_size

Function ggml_cl_local_size

ggml-opencl.cpp:1201–1221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199}
1200
1201static size_t ggml_cl_local_size(ggml_type type) {
1202 switch (type) {
1203 case GGML_TYPE_Q4_0:
1204 case GGML_TYPE_Q4_1:
1205 case GGML_TYPE_Q5_0:
1206 case GGML_TYPE_Q5_1:
1207 case GGML_TYPE_Q8_0:
1208 return 0;
1209 case GGML_TYPE_Q2_K:
1210 case GGML_TYPE_Q3_K:
1211 return 64;
1212 case GGML_TYPE_Q4_K:
1213 return 32;
1214 case GGML_TYPE_Q5_K:
1215 case GGML_TYPE_Q6_K:
1216 return 64;
1217 case GGML_TYPE_F16:
1218 default:
1219 return 0;
1220 }
1221}
1222
1223static cl_kernel* ggml_get_dequantize_mul_mat_vec_cl(ggml_type type) {
1224 switch (type) {

Callers 1

ggml_cl_mul_mat_q_f32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected