cuquantum.bindings.cudensitymat.workspace_set_memory¶
- cuquantum.bindings.cudensitymat.workspace_set_memory(intptr_t handle, intptr_t workspace_descr, int mem_space, int workspace_kind, intptr_t memory_buffer, size_t memory_buffer_size)[source]¶
Attaches memory to 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.
memory_buffer (intptr_t) – Pointer to a user-owned memory buffer to be used by the specified workspace.
memory_buffer_size (size_t) – Size of the provided memory buffer in bytes.
See also