产品 |
是否支持 |
|---|---|
Ascend 950PR/Ascend 950DT |
√ |
√ |
|
√ |
|
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); |