aclrtGetMemcpyDescSize
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
☓ |
|
☓ |
Description
Obtains the memory size used by the memory copy descriptor of the current device.
This API must be used together with other key APIs to implement memory copy. For details, see aclrtMemcpyAsyncWithDesc.
Prototype
aclError aclrtGetMemcpyDescSize(aclrtMemcpyKind kind, size_t *descSize)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
kind |
Input |
Memory copy kind. Currently, only ACL_MEMCPY_INNER_DEVICE_TO_DEVICE is supported, indicating memory copy within a device. |
descSize |
Output |
Memory size, in bytes. |
Returns
0 on success; else, failure. For details, see aclError.
Parent topic: Memory Management