workspace_get_memory#
-
cuquantum.
bindings. cutensornet. workspace_get_memory( - intptr_t handle,
- intptr_t work_desc,
- int mem_space,
- int work_kind,
Retrieves the memory address and workspace size of workspace hosted in the workspace descriptor.
- Parameters:
handle (intptr_t) – Opaque handle holding cuTensorNet’s library context.
work_desc (intptr_t) – Opaque structure describing the workspace.
mem_space (Memspace) – The memory space where the workspace is allocated.
work_kind (WorkspaceKind) – The kind of workspace.
- Returns:
intptr_t: Workspace memory pointer.
int64_t: Workspace size.
- Return type:
A 2-tuple containing
See also