Go to the source code of this file.
Functions | |
| void | ck_codegen_v2_emit_dispatch (FILE *out, const CKIRV2Graph *graph) |
| int | ck_codegen_v2_emit_preamble (FILE *out) |
| void | ck_codegen_v2_emit_schedule (FILE *out, const CKIRV2Graph *graph, const char *prefill_runtime, const char *decode_runtime, const char *backward_runtime) |
| void | ck_codegen_v2_emit_sections (FILE *out, const CKIRV2Graph *graph, const CKMemPlan *prefill_plan, const CKMemPlan *decode_plan, const CKMemPlan *backward_plan) |
| void | ck_codegen_v2_emit_struct (FILE *out, const CKIRV2Graph *graph, const CKMemPlan *plan, const char *tag) |
| void ck_codegen_v2_emit_dispatch | ( | FILE * | out, |
| const CKIRV2Graph * | graph | ||
| ) |
Definition at line 5 of file ckernel_codegen_v2_dispatch.c.
Referenced by ck_codegen_v2_emit_runtime().
| int ck_codegen_v2_emit_preamble | ( | FILE * | out | ) |
Definition at line 5 of file ckernel_codegen_v2_struct.c.
Referenced by ck_codegen_v2_emit_runtime().
| void ck_codegen_v2_emit_schedule | ( | FILE * | out, |
| const CKIRV2Graph * | graph, | ||
| const char * | prefill_runtime, | ||
| const char * | decode_runtime, | ||
| const char * | backward_runtime | ||
| ) |
Definition at line 61 of file ckernel_codegen_v2_schedule.c.
References emit_schedule_block().
Referenced by ck_codegen_v2_emit_runtime().
| void ck_codegen_v2_emit_sections | ( | FILE * | out, |
| const CKIRV2Graph * | graph, | ||
| const CKMemPlan * | prefill_plan, | ||
| const CKMemPlan * | decode_plan, | ||
| const CKMemPlan * | backward_plan | ||
| ) |
Definition at line 309 of file ckernel_codegen_v2_sections.c.
References CK_ROLE_ACTIVATION, CK_ROLE_GRAD, CK_ROLE_WEIGHT, CKIRV2Graph::config, CKModelConfig::context_window, emit_body_fields(), emit_body_values(), emit_footer_fields(), emit_footer_values(), emit_header_fields(), emit_header_values(), CKModelConfig::hidden_size, CKModelConfig::intermediate_size, CKModelConfig::num_heads, CKModelConfig::num_kv_heads, CKModelConfig::num_layers, and CKModelConfig::vocab_size.
Referenced by ck_codegen_v2_emit_runtime().
| void ck_codegen_v2_emit_struct | ( | FILE * | out, |
| const CKIRV2Graph * | graph, | ||
| const CKMemPlan * | plan, | ||
| const char * | tag | ||
| ) |
Definition at line 20 of file ckernel_codegen_v2_struct.c.
References CKMemSpan::arena, CKIRV2Graph::buffers, CK_MEM_ARENA_COUNT, CK_MEM_PLAN_DEFAULT_ALIGN, CKIRV2Buffer::name, CKIRV2Graph::num_buffers, CKMemSpan::offset_bytes, CKMemSpan::size_bytes, CKMemPlan::spans, and CKMemPlan::total_bytes.
Referenced by ck_codegen_v2_emit_runtime().