Go to the source code of this file.
Functions | |
| static int | recurrent_ceil_log2 (int value) |
| static void | recurrent_l2_norm_rows_backward_one (const float *d_out, const float *x, float *d_x, int rows, int dim, int head_dim, float eps) |
| static void | recurrent_l2_norm_rows_forward_one (float *x, int rows, int dim, int head_dim, float eps) |
| static void | recurrent_pytorch_bf16_l2_rows (float *x, int rows, int dim, int expanded_heads, int head_dim, float eps) |
| static float | recurrent_pytorch_bf16_square_sum (const float *x, int dim) |
| static void | recurrent_pytorch_fp32_l2_rows (float *x, int rows, int dim, int head_dim, float eps) |
| static float | recurrent_pytorch_fp32_square_sum (const float *x, int dim) |
| void | recurrent_qk_l2_norm_backward (const float *d_q_out, const float *d_k_out, const float *q, const float *k, float *d_q, float *d_k, int rows, int q_dim, int k_dim, int head_dim, float eps) |
| void | recurrent_qk_l2_norm_forward (float *q, float *k, int rows, int q_dim, int k_dim, int head_dim, float eps) |
| void | recurrent_qk_l2_norm_pytorch_bf16_storage (float *q, float *k, int rows, int q_dim, int k_dim, int expanded_heads, int head_dim, float eps) |
| void | recurrent_qk_l2_norm_pytorch_fp32_output (float *q, float *k, int rows, int q_dim, int k_dim, int head_dim, float eps) |
|
static |
Definition at line 97 of file recurrent_qk_norm_kernels.c.
Referenced by recurrent_pytorch_fp32_square_sum().
|
static |
Definition at line 40 of file recurrent_qk_norm_kernels.c.
Referenced by recurrent_qk_l2_norm_backward().
|
static |
Definition at line 10 of file recurrent_qk_norm_kernels.c.
Referenced by recurrent_qk_l2_norm_forward().
|
static |
Definition at line 307 of file recurrent_qk_norm_kernels.c.
References bf16_to_float(), float_to_bf16(), and recurrent_pytorch_bf16_square_sum().
Referenced by recurrent_qk_l2_norm_pytorch_bf16_storage().
|
static |
Definition at line 258 of file recurrent_qk_norm_kernels.c.
References bf16_to_float(), and float_to_bf16().
Referenced by recurrent_pytorch_bf16_l2_rows().
|
static |
Definition at line 197 of file recurrent_qk_norm_kernels.c.
References recurrent_pytorch_fp32_square_sum().
Referenced by recurrent_qk_l2_norm_pytorch_fp32_output().
|
static |
Definition at line 108 of file recurrent_qk_norm_kernels.c.
References mask, and recurrent_ceil_log2().
Referenced by recurrent_pytorch_fp32_l2_rows().
| void recurrent_qk_l2_norm_backward | ( | const float * | d_q_out, |
| const float * | d_k_out, | ||
| const float * | q, | ||
| const float * | k, | ||
| float * | d_q, | ||
| float * | d_k, | ||
| int | rows, | ||
| int | q_dim, | ||
| int | k_dim, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 383 of file recurrent_qk_norm_kernels.c.
References recurrent_l2_norm_rows_backward_one().
| void recurrent_qk_l2_norm_forward | ( | float * | q, |
| float * | k, | ||
| int | rows, | ||
| int | q_dim, | ||
| int | k_dim, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 86 of file recurrent_qk_norm_kernels.c.
References recurrent_l2_norm_rows_forward_one().
Referenced by ck_test_recurrent_qk_l2_norm().
| void recurrent_qk_l2_norm_pytorch_bf16_storage | ( | float * | q, |
| float * | k, | ||
| int | rows, | ||
| int | q_dim, | ||
| int | k_dim, | ||
| int | expanded_heads, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 368 of file recurrent_qk_norm_kernels.c.
References recurrent_pytorch_bf16_l2_rows().
| void recurrent_qk_l2_norm_pytorch_fp32_output | ( | float * | q, |
| float * | k, | ||
| int | rows, | ||
| int | q_dim, | ||
| int | k_dim, | ||
| int | head_dim, | ||
| float | eps | ||
| ) |
Definition at line 246 of file recurrent_qk_norm_kernels.c.
References recurrent_pytorch_fp32_l2_rows().