aclrtcGetCompileLog
产 品 支 持 情 况
功 能 说 明
获 取 编 译 日 志 的 内 容,以 字 符 串 形 式 保 存。
函 数 原 型
Text
aclError aclrtcGetCompileLog(aclrtcProg prog, char *log)
参 数 说 明
表 1 接 口 参 数 说 明
返 回 值 说 明
aclError为int类 型 变 量,详 细 说 明 请 参 考RTC错 误 码。
约 束 说 明
无
调 用 示 例
Text
aclrtcProg prog;
size_t logSize;
aclrtcGetCompileLogSize(prog, &logSize);
char* log = (char*)malloc(logSize);
aclError result = aclrtcGetCompileLog(prog, log);