Function: dvpp_malloc_with_cfg
Applicable Products
Product |
Supported (√/x) |
|---|---|
x |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Description
Allocates device memory for media processing. The allocated huge page memory meets the data processing requirements. The usage restrictions of this API are the same as those of acl.media.dvpp_malloc. Unlike acl.media.dvpp_malloc, this API can also specify memory configuration when allocating memory.
Prototype
- C Prototype
1aclError acldvppMallocWithCfg(void **devPtr, size_t size, aclrtMemMallocPolicy policy, aclrtMallocConfig *cfg)
- Python Function
1dev_ptr, retacl.media.dvpp_malloc_with_cfg(size, policy, cfg)
Parameters
Return Values
Return Value |
Description |
|---|---|
dev_ptr |
Int, pointer address of the allocated device memory. |
ret |
Int, error code: 0 on success; else, failure. |
Parent topic: Memory Allocation and Deallocation