aclrtSetTsDevice

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

Sets the task schedule required for the computation.

Prototype

aclError aclrtSetTsDevice(aclrtTsId tsId)

Parameters

Parameter

Input/Output

Description

tsId

Input

Task schedule required for the computation. If the Ascend AI Processor contains only AI CORE Task Schedule but not the VECTOR Core 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, // VECTOR Core Task Schedule
    ACL_TS_ID_RESERVED = 2,
} aclrtTsId;

Returns

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