#include "checked_float_buffer.h"#include "checked_parallel.h"#include "checked_q4_k_activation.h"#include "packed_iq2_xs_dot.h"#include "packed_k_dot_ordered.h"#include <stdatomic.h>Go to the source code of this file.
Macros | |
| #define | LINEAR_ARGS |
Typedefs | |
| typedef void(* | packed_matvec_fn) (float *, const void *, const void *, int, int) |
Functions | |
| void | gemv_q5_k_q8_k (float *, const void *, const void *, int, int) |
| void | gemv_q6_k_q8_k_checked_cpu (float *, const void *, const void *, int, int) |
| static void | iq2_xs_matvec (float *out, const void *weight, const void *activation, int rows, int width) |
| int | linear_rows_iq2_xs_q8_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels, float *work, size_t work_elements) |
| static int | linear_rows_packed_checked (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels, size_t block_width, size_t block_bytes, float(*dot)(const float *, const unsigned char *, size_t)) |
| static int | linear_rows_packed_k_q8_k_checked (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels, float *work, size_t work_elements, size_t block_bytes, size_t weight_alignment, packed_matvec_fn matvec) |
| int | linear_rows_q3_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels) |
| int | linear_rows_q4_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels) |
| int | linear_rows_q4_k_q8_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels, float *work, size_t work_elements) |
| int | linear_rows_q5_1_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels) |
| int | linear_rows_q5_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels) |
| int | linear_rows_q5_k_q8_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels, float *work, size_t work_elements) |
| int | linear_rows_q6_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels) |
| int | linear_rows_q6_k_q8_k_checked_f32 (const float *input, size_t input_elements, const void *weight, size_t weight_bytes, float *output, size_t output_elements, size_t rows, size_t width, size_t channels, float *work, size_t work_elements) |
| static void | packed_k_matvec_ranges (size_t begin, size_t end, void *opaque) |
| static void | packed_linear_outputs (size_t begin, size_t end, void *opaque) |
| #define LINEAR_ARGS |
Definition at line 9 of file linear_rows_packed_k_checked.c.
Referenced by linear_rows_iq2_xs_q8_k_checked_f32(), linear_rows_packed_checked(), linear_rows_packed_k_q8_k_checked(), linear_rows_q3_k_checked_f32(), linear_rows_q4_k_checked_f32(), linear_rows_q4_k_q8_k_checked_f32(), linear_rows_q5_1_checked_f32(), linear_rows_q5_k_checked_f32(), linear_rows_q5_k_q8_k_checked_f32(), linear_rows_q6_k_checked_f32(), and linear_rows_q6_k_q8_k_checked_f32().
| typedef void(* packed_matvec_fn) (float *, const void *, const void *, int, int) |
Definition at line 110 of file linear_rows_packed_k_checked.c.
| void gemv_q5_k_q8_k | ( | float * | y, |
| const void * | W, | ||
| const void * | x_q8, | ||
| int | M, | ||
| int | K ) |
Definition at line 1007 of file gemm_kernels_q5_k.c.
Referenced by gemm_q5_k_q8_k_compact_rows4().
| void gemv_q6_k_q8_k_checked_cpu | ( | float * | out, |
| const void * | weights, | ||
| const void * | input, | ||
| int | rows, | ||
| int | width ) |
Definition at line 810 of file gemm_kernels_q6k_q8k.c.
References gemv_q6_k_q8_k_ref(), and QK_K.
Referenced by linear_rows_q6_k_q8_k_checked_f32().
|
static |
Definition at line 188 of file linear_rows_packed_k_checked.c.
References ck_dot_iq2_xs_q8_k(), and QK_K.
Referenced by linear_rows_iq2_xs_q8_k_checked_f32().
| int linear_rows_iq2_xs_q8_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels, | ||
| float * | work, | ||
| size_t | work_elements ) |
Definition at line 196 of file linear_rows_packed_k_checked.c.
References iq2_xs_matvec(), LINEAR_ARGS, and linear_rows_packed_k_q8_k_checked().
|
static |
Definition at line 43 of file linear_rows_packed_k_checked.c.
References ck_checked_finite(), ck_checked_overlap(), ck_checked_parallel_for(), ck_checked_region(), ck_checked_span(), dot(), LINEAR_ARGS, and packed_linear_outputs().
Referenced by linear_rows_q3_k_checked_f32(), linear_rows_q4_k_checked_f32(), linear_rows_q5_1_checked_f32(), linear_rows_q5_k_checked_f32(), and linear_rows_q6_k_checked_f32().
|
static |
Definition at line 133 of file linear_rows_packed_k_checked.c.
References ck_checked_finite(), ck_checked_overlap(), ck_checked_parallel_for(), ck_checked_region(), ck_checked_span(), ck_pack_q4_input_q8_k(), LINEAR_ARGS, packed_k_matvec_ranges(), and QK_K.
Referenced by linear_rows_iq2_xs_q8_k_checked_f32(), linear_rows_q4_k_q8_k_checked_f32(), linear_rows_q5_k_q8_k_checked_f32(), and linear_rows_q6_k_q8_k_checked_f32().
| int linear_rows_q3_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels ) |
Definition at line 72 of file linear_rows_packed_k_checked.c.
References ck_packed_q3_k_dot_ordered(), LINEAR_ARGS, linear_rows_packed_checked(), and QK_K.
| int linear_rows_q4_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels ) |
Definition at line 79 of file linear_rows_packed_k_checked.c.
References ck_packed_q4_k_dot_ordered(), LINEAR_ARGS, linear_rows_packed_checked(), and QK_K.
| int linear_rows_q4_k_q8_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels, | ||
| float * | work, | ||
| size_t | work_elements ) |
Definition at line 174 of file linear_rows_packed_k_checked.c.
References gemv_q4_k_q8_k_avx2(), LINEAR_ARGS, and linear_rows_packed_k_q8_k_checked().
| int linear_rows_q5_1_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels ) |
Definition at line 86 of file linear_rows_packed_k_checked.c.
References ck_packed_q5_1_dot_ordered(), LINEAR_ARGS, linear_rows_packed_checked(), and QK5_1.
| int linear_rows_q5_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels ) |
Definition at line 100 of file linear_rows_packed_k_checked.c.
References ck_packed_q5_k_dot_ordered(), LINEAR_ARGS, linear_rows_packed_checked(), and QK_K.
| int linear_rows_q5_k_q8_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels, | ||
| float * | work, | ||
| size_t | work_elements ) |
Definition at line 203 of file linear_rows_packed_k_checked.c.
References CK_DT_Q5_K, ck_dtype_block_bytes(), gemv_q5_k_q8_k(), LINEAR_ARGS, and linear_rows_packed_k_q8_k_checked().
| int linear_rows_q6_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels ) |
Definition at line 93 of file linear_rows_packed_k_checked.c.
References ck_packed_q6_k_dot_ordered(), LINEAR_ARGS, linear_rows_packed_checked(), and QK_K.
| int linear_rows_q6_k_q8_k_checked_f32 | ( | const float * | input, |
| size_t | input_elements, | ||
| const void * | weight, | ||
| size_t | weight_bytes, | ||
| float * | output, | ||
| size_t | output_elements, | ||
| size_t | rows, | ||
| size_t | width, | ||
| size_t | channels, | ||
| float * | work, | ||
| size_t | work_elements ) |
Definition at line 181 of file linear_rows_packed_k_checked.c.
References gemv_q6_k_q8_k_checked_cpu(), LINEAR_ARGS, and linear_rows_packed_k_q8_k_checked().
|
static |
Definition at line 119 of file linear_rows_packed_k_checked.c.
References count, end, left, and QK_K.
Referenced by linear_rows_packed_k_q8_k_checked().
|
static |
Definition at line 23 of file linear_rows_packed_k_checked.c.
References end.
Referenced by linear_rows_packed_checked().