cuquantum.cutensornet.workspace_set_memory

cuquantum.cutensornet.workspace_set_memory(intptr_t handle, intptr_t workspace, int mem_space, int kind, intptr_t workspace_ptr, int64_t workspace_size)[source]

Set the workspace pointer and size for the corresponding memory space and workspace kind in the workspace descriptor for later use.

Parameters
  • handle (intptr_t) – The library handle.

  • workspace (intptr_t) – The workspace descriptor.

  • mem_space (Memspace) – The memory space for the workspace being queried.

  • kind (WorkspaceKind) – The kind of the workspace being queried

  • workspace_ptr (intptr_t) – The pointer address to the workspace.

  • workspace_size (int64_t) – The size of the workspace.