aclrtMemPoolSetAttr
Note: This API is reserved and not supported currently.
Description
Sets a value for an attribute.
If the same attribute of a memory pool is set multiple times, only the last setting takes effect.
Prototype
1 | aclError aclrtMemPoolSetAttr(aclrtMemPool memPool, aclrtMemPoolAttr attr, void *value) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
memPool |
Input |
Memory pool instance. For details about the type definition, see aclrtMemPool. |
attr |
Input |
Attribute. For details about the type definition, see aclrtMemPoolAttr. |
value |
Input |
Pointer to the address of the attribute value to be written. The type of the written data must be the same as that of the attribute specified by attr. |
Returns
0 on success; otherwise, failure. For details, see aclError.
Parent topic: Ordered Stream Memory Allocation