Allocates device memory. The requested allocation must meet the media data processing requirements (for example,128-byte alignment of the start address).
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
len indicates the size of a memory segment. ALIGN_UP[len,k] indicates rounding up to a multiple of k bytes as in this formula: ((len – 1)/k + 1) x k.
Parameter |
Input/Output |
Description |
|---|---|---|
dev_id |
Input |
Device ID. This parameter is reserved and invalid. In standard form, when this API is called on the host, DVPP allocates memory on the device set by the call to the AscendCL aclrtSetDevice API. |
dev_ptr |
Output |
Pointer to the pointer to the allocated device memory. |
size |
Input |
Requested allocation size, in bytes. |
For the API call sequence, see Media Data Processing V2.