Name Description Size Coverage
amx -
arch 2 %
arch-fallback.h 21284 -
binary-ops.cpp 6709 54 %
binary-ops.h 518 -
CMakeLists.txt 34234 -
common.h 2333 48 %
ggml-cpu-c.c 128666 35 %
ggml-cpu-impl.h 13723 -
ggml-cpu.cpp 24128 56 %
hbm.cpp .iface = 2003 -
hbm.h 155 -
ops.cpp 392594 13 %
ops.h 9663 -
quants.c 43447 0 %
quants.h 10434 -
repack.cpp 195918 0 %
repack.h 19905 -
simd-gemm.h 7467 79 %
simd-mappings.h the inline asm below is about 12% faster than the lookup method 54075 100 %
traits.cpp 1231 33 %
traits.h 1157 0 %
unary-ops.cpp / if (src0->type == GGML_TYPE_F32 && dst->type == GGML_TYPE_F32) { // all f32 apply_unary_op<op, float, float>(params, dst); } else if (src0->type == GGML_TYPE_F16 && dst->type == GGML_TYPE_F16) { // all f16 apply_unary_op<op, ggml_fp16_t, ggml_fp16_t>(params, dst); } else if (src0->type == GGML_TYPE_BF16 && dst->type == GGML_TYPE_BF16) { // all bf16 apply_unary_op<op, ggml_bf16_t, ggml_bf16_t>(params, dst); } else if (src0->type == GGML_TYPE_BF16 && dst->type == GGML_TYPE_F32) { apply_unary_op<op, ggml_bf16_t, float>(params, dst); } else if (src0->type == GGML_TYPE_F16 && dst->type == GGML_TYPE_F32) { apply_unary_op<op, ggml_fp16_t, float>(params, dst); } else { fprintf(stderr, "%s: unsupported types: dst: %s, src0: %s\n", __func__, ggml_type_name(dst->type), ggml_type_name(src0->type)); GGML_ABORT("fatal error"); } } template <float (*op)(float, ggml_tensor *)> static void unary_op_params(const ggml_compute_params * params, ggml_tensor * dst) { const ggml_tensor * src0 = dst->src[0]; /* 11555 0 %
unary-ops.h 2442 -
vec.cpp 25691 42 %
vec.h 66060 26 %