MallocWorkSpace
Header File/Library File
- Header file: #include <exe_graph/runtime/eager_op_execution_context.h>
- Library file: liblowering.so
Function Usage
Allocates workspace memory with device placement.
The allocated memory is managed by the context creator. The API caller does not need to proactively release the memory.
Prototype
1 | void *MallocWorkSpace(size_t size) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
size |
Input |
Memory size, in bytes. |
Returns
Address pointer. If an exception occurs, a null pointer is returned.
Restrictions
None
Parent topic: EagerOpExecutionContext