aclrtSetTsDevice

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Sets the task schedule required for the computation.

Prototype

1
aclError aclrtSetTsDevice(aclrtTsId tsId)

Parameters

Parameter

Input/Output

Description

tsId

Input

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

Returns

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