acl.himpi.dvpp_malloc
C Prototype |
hi_s32 hi_mpi_dvpp_malloc(hi_u32 dev_id, hi_void **dev_ptr, hi_u64 size) |
|---|---|
Python Function |
dev_ptr, ret = acl.himpi.dvpp_malloc(dev_id, size) |
Function Usage |
Allocates device memory. The requested allocation must meet the media data processing requirements (for example,128-byte alignment of the start address). The Atlas 200/300/500 Inference Product does not support this API. The Atlas Training Series Product does not support this API. |
Input Description |
dev_id: device ID. This parameter is reserved and is invalid. size: requested allocation size in bytes. |
Return Value |
ret: int, error code.
dev_ptr: int, address of the pointer to the allocated device memory. |
Restrictions |
|