workspace_get_memory#
-
cuquantum.
bindings. cudensitymat. workspace_get_memory( - intptr_t handle,
- intptr_t workspace_descr,
- int mem_space,
- int workspace_kind,
Retrieves a workspace buffer.
- Parameters:
handle (intptr_t) – Library handle.
workspace_descr (intptr_t) – Workspace descriptor.
mem_space (Memspace) – Memory space.
workspace_kind (WorkspaceKind) – Workspace kind.
- Returns:
intptr_t: Pointer to a user-owned memory buffer used by the specified workspace.
size_t: Size of the memory buffer in bytes.
- Return type:
A 2-tuple containing
See also