aclrtcGetCompileLogSize
产品支持情况
产品 |
是否支持 |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
功能说明
获取编译日志的大小。用于在aclrtcGetCompileLog获取日志内容时分配对应大小的内存空间。
函数原型
1 | aclError aclrtcGetCompileLogSize(aclrtcProg prog, size_t *logSizeRet) |
参数说明
参数名 |
输入/输出 |
描述 |
|---|---|---|
prog |
输入 |
运行时编译程序的句柄。 |
logSizeRet |
输出 |
编译日志的长度。 |
返回值说明
aclError为int类型变量,详细说明请参考RTC错误码。
约束说明
无
调用示例
1 2 3 | aclrtcProg prog; size_t logSize; aclError result = aclrtcGetCompileLogSize(prog, &logSize); |
父主题: RTC