#include "ckernel_codegen_v2.h"#include "ckernel_codegen_v2_emit.h"#include "ckernel_mem_plan.h"#include <errno.h>#include <stdio.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Functions | |
| int | ck_codegen_v2_emit_runtime (const CKIRV2Graph *graph, const char *path, CKEmitMode mode) |
| int ck_codegen_v2_emit_runtime | ( | const CKIRV2Graph * | graph, |
| const char * | path, | ||
| CKEmitMode | mode | ||
| ) |
Emit a C runtime file from a CKIRV2Graph.
This v2 emitter is IR-driven and will evolve to generate fully wired kernels once buffer bindings and fusion metadata are added to the IR.
Definition at line 10 of file ckernel_codegen_v2.c.
References ck_codegen_v2_emit_dispatch(), ck_codegen_v2_emit_preamble(), ck_codegen_v2_emit_schedule(), ck_codegen_v2_emit_sections(), ck_codegen_v2_emit_struct(), CK_EMIT_STANDALONE, ck_mem_plan_build_inference_with_tokens(), ck_mem_plan_build_training_with_tokens(), CK_MEM_PLAN_DEFAULT_ALIGN, and ck_mem_plan_free().
Referenced by main().