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

Function ggml_cl_global_denom

ggml-opencl.cpp:1179–1199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1177}
1178
1179static size_t ggml_cl_global_denom(ggml_type type) {
1180 switch (type) {
1181 case GGML_TYPE_Q4_0:
1182 case GGML_TYPE_Q4_1:
1183 case GGML_TYPE_Q5_0:
1184 case GGML_TYPE_Q5_1:
1185 case GGML_TYPE_Q8_0:
1186 return 1;
1187 case GGML_TYPE_Q2_K:
1188 case GGML_TYPE_Q3_K:
1189 return 4;
1190 case GGML_TYPE_Q4_K:
1191 return 8;
1192 case GGML_TYPE_Q5_K:
1193 case GGML_TYPE_Q6_K:
1194 return 4;
1195 case GGML_TYPE_F16:
1196 default:
1197 return 1;
1198 }
1199}
1200
1201static size_t ggml_cl_local_size(ggml_type type) {
1202 switch (type) {

Callers 1

ggml_cl_mul_mat_q_f32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected