aclrtAllocBuf
Description
Allocates a shared buffer of a specified size.
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
buf |
Output |
Allocated shared buffer. |
size |
Input |
Memory size of a specified data area, in bytes. The value cannot exceed 4 GB. |
Returns
0 on success; else, failure. For details, see aclError.