Go to the source code of this file.
Data Structures | |
| struct | CKMemPlan |
| struct | CKMemSpan |
Macros | |
| #define | CK_MEM_PLAN_DEFAULT_ALIGN 64 |
Enumerations | |
| enum | CKMemArenaKind { CK_MEM_ARENA_WEIGHTS = 0 , CK_MEM_ARENA_ACTIVATIONS = 1 , CK_MEM_ARENA_GRADS = 2 , CK_MEM_ARENA_COUNT } |
Functions | |
| int | ck_mem_plan_build_inference (const CKIRV2Graph *graph, CKMemPlan *plan, size_t alignment_bytes) |
| int | ck_mem_plan_build_inference_with_tokens (const CKIRV2Graph *graph, CKMemPlan *plan, size_t alignment_bytes, int tokens_override) |
| int | ck_mem_plan_build_training (const CKIRV2Graph *graph, CKMemPlan *plan, size_t alignment_bytes) |
| int | ck_mem_plan_build_training_with_tokens (const CKIRV2Graph *graph, CKMemPlan *plan, size_t alignment_bytes, int tokens_override) |
| void | ck_mem_plan_free (CKMemPlan *plan) |
| #define CK_MEM_PLAN_DEFAULT_ALIGN 64 |
Definition at line 12 of file ckernel_mem_plan.h.
| enum CKMemArenaKind |
| Enumerator | |
|---|---|
| CK_MEM_ARENA_WEIGHTS | |
| CK_MEM_ARENA_ACTIVATIONS | |
| CK_MEM_ARENA_GRADS | |
| CK_MEM_ARENA_COUNT | |
Definition at line 14 of file ckernel_mem_plan.h.
| int ck_mem_plan_build_inference | ( | const CKIRV2Graph * | graph, |
| CKMemPlan * | plan, | ||
| size_t | alignment_bytes | ||
| ) |
Definition at line 216 of file ckernel_mem_plan.c.
References build_plan().
| int ck_mem_plan_build_inference_with_tokens | ( | const CKIRV2Graph * | graph, |
| CKMemPlan * | plan, | ||
| size_t | alignment_bytes, | ||
| int | tokens_override | ||
| ) |
Definition at line 230 of file ckernel_mem_plan.c.
References build_plan().
Referenced by ck_codegen_v2_emit_runtime(), and ck_ir_v2_lower_graph().
| int ck_mem_plan_build_training | ( | const CKIRV2Graph * | graph, |
| CKMemPlan * | plan, | ||
| size_t | alignment_bytes | ||
| ) |
Definition at line 223 of file ckernel_mem_plan.c.
References build_plan().
| int ck_mem_plan_build_training_with_tokens | ( | const CKIRV2Graph * | graph, |
| CKMemPlan * | plan, | ||
| size_t | alignment_bytes, | ||
| int | tokens_override | ||
| ) |
Definition at line 238 of file ckernel_mem_plan.c.
References build_plan().
Referenced by ck_codegen_v2_emit_runtime(), and ck_ir_v2_lower_graph().
| void ck_mem_plan_free | ( | CKMemPlan * | plan | ) |
Definition at line 246 of file ckernel_mem_plan.c.
References CKMemPlan::spans.
Referenced by ck_codegen_v2_emit_runtime(), ck_ir_v2_lower_emit_json(), and ck_ir_v2_lower_graph().