aclrtGetRunMode

Description

Obtains the current run mode of the AI software stack.

Prototype

aclError aclrtGetRunMode(aclrtRunMode *runMode)

Parameters

Parameter

Input/Output

Description

runMode

Output

Pointer to the run mode.

  • ACL_DEVICE: The AI software stack runs on the Ctrl CPU or in the board environment on the device.

    The Atlas Training Series Product does not support this mode.

  • ACL_HOST: The AI software stack runs on the host CPU.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.

See Also

For details about the API call sequence and sample code, see Runtime Resource Allocation and Deallocation.