GetWindowsOutAddr
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
Obtains the WindowsOut start address of inter-card communication data, which can be directly used as the input and output address for computation, reducing copy operations. By default, this API works on all cores. You can also specify a core by setting GetBlockIdx before calling this API.
Prototype
1 | __aicore__ inline GM_ADDR GetWindowsOutAddr(uint32_t rankId) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
rankId |
Input |
ID of the rank to be queried. |
Returns
Returns the WindowsOut start address of inter-card communication data of the corresponding rank. If rankId is invalid, nullptr is returned.
Restrictions
None
Example
For details, see the examples in GetWindowsInAddr.