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
Activates the reserved virtual memory. Zero-copy can be enabled only when the activated memory is used as the input and output of a communication operator.
1
|
HcclResult HcclCommActivateCommMemory(HcclComm comm, void *virPtr, size_t size, size_t offset, aclrtDrvMemHandle handle, 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. |
|
virPtr |
Input |
Address of the virtual memory to be activated, that is, the target virtual memory address for mapping when you call aclrtMapMem to map the physical memory to the virtual memory. |
|
size |
Input |
Size of the memory to be activated, in bytes. |
|
offset |
Input |
Reserved field. Currently, only the value 0 is supported. |
|
handle |
Input |
Handle of the allocated physical memory, that is, the handle of a device's physical memory allocated by calling aclrtMallocPhysical. |
|
flags |
Input |
Reserved field. Currently, only the value 0 is supported. |
HcclResult: HCCL_SUCCESS on success, or else failure.