PlatformInfo
功 能 说 明
将 指 向fe::PlatFormInfos的 指 针 传 入TilingContext。
函 数 原 型
Text
ContextBuilder &PlatformInfo(void *platformInfo)
参 数 说 明
返 回 值 说 明
当 前ContextBuilder的 对 象。
约 束 说 明
由 于TilingContext与KernelContext、TilingParseContext内 部 数 据 排 序 不 同,Platform()只 支 持 以 调 用BuildTilingContext()为 前 提 来 使 用;其 他 场 景 建 议 用Outputs接 口,否 则 发 生 未 定 义 行 为。
调 用 示 例
Text
void AddPlatformInfo(fe::PlatFormInfos *platformInfo)
{
......
auto kernelContextHolder = context_ascendc::ContextBuilder()
...... // 增 加 算 子 输 入 输 出 接 口 的 调 用
.PlatformInfo(reinterpret_cast<void*>(platformInfo));
.BuildTilingContext();
......
}