|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Obtains the current run mode of the Ascend AI Software Stack.
1
|
aclError aclrtGetRunMode(aclrtRunMode *runMode) |
1
|
run_mode, ret = acl.rt.get_run_mode() |
|
Parameter |
Description |
|---|---|
|
run_mode |
Int, running mode. For details about the type definition, see aclrtRunMode. |
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |
For details about the API call sequence and examples, see Runtime Resource Allocation and Deallocation.