aclrtGetRunMode

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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 A3 training products / Atlas A3 inference products do not support this option.

    The Atlas A2 training products / Atlas A2 inference products do not support this option.

    The Atlas training products do not support this option.

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

Returns

0 on success; else, failure. For details, see aclError.

See Also

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