SetDynUBufSize
Function Usage
Sets the size of the dynamic unified buffer to be used for SIMT operators. If this parameter is not set, the default value 0 is used, indicating that the operator does not need to use the dynamic unified buffer.
This API is reserved for subsequent functions. You are not advised to use this API.
Prototype
ge::graphStatus SetDynUBufSize(const uint32_t dyn_ubuf_size)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
local_memory_size |
Input |
Size of the dynamic unified buffer. |
Returns
ge::GRAPH_SUCCESS on success.
For details about the definition of graphStatus, see ge::graphStatus.
Constraints
None
Examples
ge::graphStatus Tiling4XXX(TilingContext* context) {
// ...
auto ret = context->SetDynUBufSize(1024 * 128);
}
Parent topic: TilingContext