← Back to C-Kernel-Engine Docs Doxygen Source Documentation
 
Loading...
Searching...
No Matches
attention_oracle_ggml.h File Reference

Go to the source code of this file.

Macros

#define CK_ENABLE_LLAMA_CPP_PARITY   0
 

Functions

static int ck_attention_full_ggml_graph_oracle_multihead (const float *q, const float *k, const float *v, float *output, int num_heads, int num_kv_heads, int num_tokens, int head_dim, int aligned_head_dim, int kv_stride_tokens, float scale)
 
static int ck_attention_head_full_ggml_graph_oracle_regular (const float *q_head, const float *k_head, const float *v_head, float *out_head, int num_tokens, int head_dim, int aligned_head_dim, float scale)
 

Macro Definition Documentation

◆ CK_ENABLE_LLAMA_CPP_PARITY

#define CK_ENABLE_LLAMA_CPP_PARITY   0

Definition at line 5 of file attention_oracle_ggml.h.

Function Documentation

◆ ck_attention_full_ggml_graph_oracle_multihead()

static int ck_attention_full_ggml_graph_oracle_multihead ( const float *  q,
const float *  k,
const float *  v,
float *  output,
int  num_heads,
int  num_kv_heads,
int  num_tokens,
int  head_dim,
int  aligned_head_dim,
int  kv_stride_tokens,
float  scale 
)
inlinestatic

Definition at line 53 of file attention_oracle_ggml.h.

64{
65 (void) q;
66 (void) k;
67 (void) v;
68 (void) output;
69 (void) num_heads;
70 (void) num_kv_heads;
71 (void) num_tokens;
72 (void) head_dim;
73 (void) aligned_head_dim;
74 (void) kv_stride_tokens;
75 (void) scale;
76 return 0;
77}

◆ ck_attention_head_full_ggml_graph_oracle_regular()

static int ck_attention_head_full_ggml_graph_oracle_regular ( const float *  q_head,
const float *  k_head,
const float *  v_head,
float *  out_head,
int  num_tokens,
int  head_dim,
int  aligned_head_dim,
float  scale 
)
inlinestatic

Definition at line 33 of file attention_oracle_ggml.h.

41{
42 (void) q_head;
43 (void) k_head;
44 (void) v_head;
45 (void) out_head;
46 (void) num_tokens;
47 (void) head_dim;
48 (void) aligned_head_dim;
49 (void) scale;
50 return 0;
51}