产品
是否支持
Atlas A3 训练系列产品/Atlas A3 推理系列产品
√
Atlas A2 训练系列产品/Atlas A2 推理系列产品
获取全局数据的地址。
获取全局数据的地址
__aicore__ inline const __gm__ PrimType* GetPhyAddr() const
获取全局数据(指定偏移offset个元素)的地址
__aicore__ inline __gm__ PrimType* GetPhyAddr(const uint64_t offset) const
表 1 参数说明
参数名
输入/输出
描述
offset
输入
偏移的元素个数,用于指定数据的位置。
全局数据的地址。
无。