aclrtSetTsDevice

Description

Sets the compute Task Scheduler. This API call takes effect only when Ascend AI Processor supports the Vector Core execution engine. This API is synchronous.

In the current version, only AI Core Task Schedule is available in the Ascend AI Software Stack and this API is unused.

Prototype

aclError aclrtSetTsDevice(aclrtTsId tsId)

Parameters

Parameter

Input/Output

Description

tsId

Input

Compute Task Schedule. This parameter is invalid when only AI Core Task Schedule is available in the Ascend AI Software Stack. AI Core Task Schedule is the default configuration.

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

0 on success; else, failure.