acldvppMallocWithCfg
Applicable Products
|
Product |
Supported |
|---|---|
|
|
x |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function
Allocates device memory for media processing. The allocated huge page memory meets the data processing requirements (for example, the start address is 128-byte aligned). The restrictions are the same as those of acldvppMalloc. Unlike acldvppMalloc, this API can also specify memory configuration when allocating memory.
Prototype
1
|
aclError acldvppMallocWithCfg(void **devPtr, size_t size, aclrtMemMallocPolicy policy, aclrtMallocConfig *cfg) |
Parameters
Returns
0 on success; else, failure. For details, see aclError.