HixlCSServerRegMem
Function Description
Registers the shared memory by the server for the client to access.
Prototype
HixlStatus HixlCSServerRegMem(HixlServerHandle server_handle,
const char *mem_tag,
const CommMem *mem,
MemHandle *mem_handle);
Parameters
Returns
- HIXL_SUCCESS: Registration success.
- HIXL_PARAM_INVALID: Incorrect parameter.
- Other values: Failure.
Constraints
- Before the client calls HixlCSClientConnect to establish a link with the local end, register all local memories.
- If you use the host RoCE NIC, the memory allocated by aclrtMallocHost cannot be registered. Use the malloc method instead.
- Allocate device memory using aclrtMalloc for registration.
Parent topic: API Description