模板参数

产品支持情况

产品

是否支持

Ascend 950PR/Ascend 950DT

√

Atlas A3 训练系列产品/Atlas A3 推理系列产品

√

Atlas A2 训练系列产品/Atlas A2 推理系列产品

√

Atlas 200I/500 A2 推理产品

√

Atlas 推理系列产品AI Core

√

Atlas 推理系列产品Vector Core

x

Atlas 训练系列产品

√

功能说明

TQueSync类的模板参数用于指定源流水和目标流水,目的流水等待源流水。

函数原型

1
2
3
4
5
6
template<pipe_t src, pipe_t dst>
class TQueSync {
public:
    __aicore__ inline void SetFlag(TEventID id);
    __aicore__ inline void WaitFlag(TEventID id);
};

参数说明

表1 参数说明

参数名

输入/输出

描述

src

输入

源流水。

支持的流水参考表1。

dst

输入

目的流水。

支持的流水参考表1。

返回值说明

无

约束说明

无