cuquantum.cutensornet.workspace_set

cuquantum.cutensornet.workspace_set(intptr_t handle, intptr_t workspace, int mem_space, intptr_t workspace_ptr, uint64_t workspace_size)[source]

Set the workspace pointer and size for the corresponding memory space 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.

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

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