aclrtcGetCompileLog

Applicability

Product

Supported

Atlas 350 Accelerator Card

x

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product AI Core

x

Atlas inference product Vector Core

x

Atlas training product

x

Function Usage

Obtains the content of the compilation log and saves it as a character string.

Prototype

1
aclError aclrtcGetCompileLog(aclrtcProg prog, char *log)

Parameters

Table 1 API parameters

Parameter

Input/Output

Description

prog

Input

Handle to the runtime compiler.

log

Output

Content of the compilation log, which is saved as a character string.

Returns

aclError is an int variable. For details, see RTC Error Codes.

Restrictions

None

Examples

1
2
3
4
5
aclrtcProg prog;
size_t logSize;
aclrtcGetCompileLogSize(prog, &logSize);
char* log = (char*)malloc(logSize);
aclError result = aclrtcGetCompileLog(prog, log);