cuquantum.cutensornet.workspace_set_memory

cuquantum.cutensornet.workspace_set_memory(intptr_t handle, intptr_t work_desc, int mem_space, int work_kind, intptr_t memory_ptr, int64_t memory_size)[source]

Sets the memory address and workspace size of the workspace provided by user.

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.

  • memory_ptr (intptr_t) – Workspace memory pointer, may be null.

  • memory_size (int64_t) – Workspace size.