目录

Constructor

Function Description

Constructs a TPipe object used to manage the global memory and synchronization.

Function Prototype

__aicore__ inline TPipe()

Supported Models

Kirin 9020 series processors

Kirin 9030 series processors

Kirin X90 series processors

Notes

Return Value

None

Calling Example

template <typename ComputeT> class KernelExample {
public:
    __aicore__ inline KernelExample() {}
    __aicore__ inline void Init(..., TPipe* pipeIn)
    {
        // ...
        pipe = pipeIn;
        pipe->InitBuffer(xxxBuf, BUFFER_NUM, xxxSize);
        // ...
    }
private:
    // ...
    TPipe* pipe;
    // ...
};
extern "C" __global__ __aicore__ void example_kernel(...) {
    // ...
    TPipe pipe;
    KernelExample<float> op;
    op.Init(..., &pipe);
    // ...
}