aclrtcGetCompileLogSize
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
Obtains the size of the compilation log. This API is used to allocate the memory space when using the aclrtcGetCompileLog API to obtain the log content.
Prototype
1 | aclError aclrtcGetCompileLogSize(aclrtcProg prog, size_t *logSizeRet) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
prog |
Input |
Handle to the runtime compiler. |
logSizeRet |
Output |
Length of the compilation log. |
Returns
aclError is an int variable. For details, see RTC Error Codes.
Restrictions
None
Example
1 2 3 | aclrtcProg prog; size_t logSize; aclError result = aclrtcGetCompileLogSize(prog, &logSize); |
Parent topic: RTC