GetHcclContext
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
|
x |
Function
Obtains the context (message area) address of a communicator with the specified index.
Prototype
1 2 | template <uint32_t index> __aicore__ inline __gm__ uint8_t* __gm__ GetHcclContext(void) |
Parameters
Parameter |
Description |
|---|---|
index |
A template parameter, which indicates the communicator ID to be set. Currently, only two communicators are supported. index can be 0 or 1. |
Returns
Returns the context (message area) address of a specified communicator.
Restrictions
Currently, a maximum of two communicators are supported.
Example
1 | GM_ADDR contextGM = AscendC::GetHcclContext<0>(); |
Parent topic: HCCL Context