HcclCommActivateCommMemory
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
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.
Prototype
1
|
HcclResult HcclCommActivateCommMemory(HcclComm comm, void *virPtr, size_t size, size_t offset, aclrtDrvMemHandle handle, uint64_t flags) |
Parameters
Returns
HcclResult: HCCL_SUCCESS on success, or else failure.
Constraints
- The address of the virtual memory to be activated must be within the address range set in HcclCommSetMemoryRange.
- The virtual memory address cannot overlap with the address of the activated virtual memory.