Description
Obtains the run mode of the Ascend AI Software Stack. This API is synchronous.
Parameters
Parameter |
Input/Output |
Description |
runMode |
Output |
Pointer to the run mode.
- ACL_DEVICE: The Ascend AI Software Stack runs on device-side Ctrl CPU or in the board environment.
The Ascend 310 AI Processor supports this mode. The Ascend 910 AI Processor does not support this mode. The Ascend 310P AI Processor supports this mode.
- ACL_HOST: Ascend AI Software Stack runs on host CPU.
The Ascend 310 AI Processor supports this mode. The Ascend 910 AI Processor supports this mode. The Ascend 310P AI Processor supports this mode.
|
Returns
0 on success; else, failure.