gemm_bf16f32_ref.c file
Functions
- void vm_bf16_modules_register(void)
-
static void gemm_bf16f32_scalar(float* c,
const int ldc,
const vm_
bf16_ t* a, const int lda, const vm_ bf16_ t* b, const int ldb, const int m, const int n, const int k, const float alpha, const float beta) - void vm_bf16_init(void)
- Install the scalar GEMM, then run
vm_.bf16_ modules_ register() -
void vm_bf16_set_gemm(vm_
bf16_ gemm_ fn fn, const char* note) - Replace the GEMM slot.
- auto vm_bf16_note(void) -> const char*
bf16=scalaruntil a module overrides the slot.-
void vm_gemm_bf16f32(float* c,
int ldc,
const vm_
bf16_ t* a, int lda, const vm_ bf16_ t* b, int ldb, int m, int n, int k, float alpha, float beta) - See
vm_.bf16_ gemm_ fn
Variables
-
static vm_
bf16_ gemm_ fn gemm_slot - static const char* bf16_note
Function documentation
void vm_bf16_init(void)
Install the scalar GEMM, then run vm_.
Call before the first vm_ if a module must override the slot. A second call does not replace an already installed slot.
void vm_bf16_set_gemm(vm_ bf16_ gemm_ fn fn,
const char* note)
Replace the GEMM slot.
fn == NULL is ignored.
note is printed by the caller via vm_. It is not vm_.
void vm_gemm_bf16f32(float* c,
int ldc,
const vm_ bf16_ t* a,
int lda,
const vm_ bf16_ t* b,
int ldb,
int m,
int n,
int k,
float alpha,
float beta)
See vm_.
Dispatches the installed slot.