This API is for trial use and may be changed in later versions. Therefore, it cannot be used in commercial products.
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
☓ |
|
|
√ |
|
|
☓ |
|
|
☓ |
|
|
☓ |
|
|
☓ |
For
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.
1
|
HcclResult HcclCommSetMemoryRange(HcclComm comm, void *baseVirPtr, size_t size, size_t alignment, uint64_t flags) |
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
comm |
Input |
HCCL communicator. You are advised to use the largest-scale communicator within the server, that is, the communicator that covers the maximum number of devices. |
|
baseVirPtr |
Input |
Base address of the virtual memory to be reserved, that is, the virtual memory address output by the aclrtReserveMemAddress API. |
|
size |
Input |
Virtual memory size, in bytes. |
|
alignment |
Input |
Reserved field. Currently, only the value 0 is supported. |
|
flags |
Input |
Reserved field. Currently, only the value 0 is supported. |
HcclResult: HCCL_SUCCESS on success, or else failure.