aclrtAllocBuf
Description
Allocates a shared buffer of a specified size.
Prototype
1 | aclError aclrtAllocBuf(aclrtMbuf *buf, size_t size) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
buf |
Output |
Allocated shared buffer. For details about the type definition, see aclrtMbuf. |
size |
Input |
Memory size of a specified data area, in bytes. The value cannot exceed 4 GB. |
Returns
0 on success; otherwise, failure. For details, see aclError.