HcclCommSetMemoryRange
This API is for trial use and may be changed in later versions. Therefore, it cannot be used in commercial products.
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
√ |
|
|
☓ |
|
|
☓ |
|
|
☓ |
|
|
☓ |
For
Function
Notifies HCCL of the reserved virtual memory address after virtual memory is successfully allocated using the aclrtReserveMemAddress API. After this API is called, the virtual memory is accessible to all communicators within the current process.
Prototype
1
|
HcclResult HcclCommSetMemoryRange(HcclComm comm, void *baseVirPtr, size_t size, size_t alignment, uint64_t flags) |
Parameters
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Constraints
- Calling this API for the first time within a communicator triggers link establishment. To ensure successful link establishment and prevent timeout errors, it is imperative that all processes within the communicator call this API simultaneously during the initial call. This constraint does not apply to subsequent calls of this API.
- This API can be called only in a single-server communicator. Otherwise, an error is reported.
- When this API is called for multiple times, the input memory addresses must be unique and do not overlap.
- For details about other constraints, see General Restrictions.