GetPhyAddr

Product Support

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 product's AI Core

Atlas inference product's Vector Core

Atlas training products

Function

Obtains the address of the global data.

Prototype

  • Obtains the address of the global data.
    1
    __aicore__ inline const __gm__ PrimType* GetPhyAddr() const
    
  • Obtains the address (offset by offset elements.) of the global data.
    1
    __aicore__ inline __gm__ PrimType* GetPhyAddr(const uint64_t offset) const
    

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

offset

Input

Number of offset elements, which is used to specify the data location.

Returns

Address of the global data.

Restrictions

None