aclrtSetTsDevice
Description
Sets the task schedule required for the computation.
Prototype
aclError aclrtSetTsDevice(aclrtTsId tsId)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tsId |
Input |
Compute Task Schedule. If Ascend AI Processor contains only AI CORE Task Schedule but not AI VECTOR Task Schedule, this parameter is invalid and AI CORE Task Schedule is used by default. typedef enum aclrtTsId {
ACL_TS_ID_AICORE = 0, //AI Core Task Schedule
ACL_TS_ID_AIVECTOR = 1, //AI Vector Task Schedule
ACL_TS_ID_RESERVED = 2,
} aclrtTsId;
|
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Device Management