cuquantum.bindings.cudensitymat.workspace_get_memory

cuquantum.bindings.cudensitymat.workspace_get_memory(intptr_t handle, intptr_t workspace_descr, int mem_space, int workspace_kind) tuple[源代码]

检索工作区缓冲区。

参数
  • handle (intptr_t) – 库句柄。

  • workspace_descr (intptr_t) – 工作区描述符。

  • mem_space (Memspace) – 内存空间。

  • workspace_kind (WorkspaceKind) – 工作区类型。

返回

  • intptr_t: 指向指定工作区使用的用户拥有的内存缓冲区的指针。

  • size_t: 内存缓冲区的大小(以字节为单位)。

返回类型

包含以下内容的 2 元组