aclrtcCompileProg
产 品 支 持 情 况
功 能 说 明
编 译 接 口,编 译 指 定 的 程 序。
函 数 原 型
Text
aclError aclrtcCompileProg(aclrtcProg prog, int numOptions, const char **options)
参 数 说 明
表 1 接 口 参 数 说 明
返 回 值 说 明
aclError为int类 型 变 量,详 细 说 明 请 参 考RTC错 误 码。
约 束 说 明
无
调 用 示 例
Text
aclrtcProg prog;
const char *options[] = {"--npu-arch=dav-2201"};
int numOptions = sizeof(options) / sizeof(options[0]);
aclError result = aclrtcCompileProg(prog, numOptions, options);