Skip to content
版 本

CompileInfo

功 能 说 明

将 指 向CompileInfo的 指 针 传 入TilingContext

函 数 原 型

Text
ContextBuilder &CompileInfo(void *compileInfo)

参 数 说 明

参 数

输 入/输 出

说 明

compileInfo

输 入

指 向CompileInfo的void指 针

返 回 值 说 明

当 前ContextBuilder的 对 象。

约 束 说 明

由 于TilingContext与KernelContext、TilingParseContext内 部 数 据 排 序 不 同,CompileInfo()只 支 持 以 调 用BuildTilingContext()为 前 提 来 使 用;其 他 场 景 建 议 用Outputs接 口,否 则 发 生 未 定 义 行 为。

调 用 示 例

Text
void AddCompileInfo(TilingParseContext *tilingParseContext)
{
    ......
    void *compilerInfo = *tilingParseContext->GetOutputPointer<void **>(0);
    auto kernelContextHolder = context_ascendc::ContextBuilder()
                                    ...... // 增 加 算 子 输 入 输 出 接 口 的 调 用
                                    .CompileInfo(compileInfo)
                                    .BuildTilingContext();
    ......
}

免 责 声 明:本 站 内 容 由 asc-devkit 仓 master 分 支 自 动 编 译 生 成,属 于 持 续 开 发 版 本,可 能 存 在 缺 陷,仅 供 预 览 与 参 考。如 需 稳 定 及 商 用 资 料,请 查 阅 官 方 昇 腾 社 区