acldvppMallocWithCfg
Applicability
|
Product |
Supported (Yes/No) |
|---|---|
|
Atlas 350 Accelerator Card |
x |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Description
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; otherwise, failure. For details, see aclError.