cuquantum.custatevec.sv_swap_worker_set_sub_svs_p2p

cuquantum.custatevec.sv_swap_worker_set_sub_svs_p2p(intptr_t handle, intptr_t sv_swap_worker, dst_sub_svs_p2p, dst_sub_sv_indices_p2p, dst_events, uint32_t n_dst_sub_svs_p2p)[source]

Set sub state vector pointers accessible via GPUDirect P2P.

Parameters
  • handle (intptr_t) – the handle to cuStateVec library.

  • sv_swap_worker (intptr_t) – state vector swap worker.

  • dst_sub_svs_p2p (object) –

    an array of pointers to sub state vectors that are accessed by GPUDirect P2P. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of intptr_t.

  • dst_sub_sv_indices_p2p (object) –

    the sub state vector indices of sub state vector pointers specified by the dst_sub_svs_p2p argument. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of int32_t.

  • dst_events (object) –

    events used to create peer workers. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of intptr_t.

  • n_dst_sub_svs_p2p (uint32_t) – the number of sub state vector pointers specified by the dst_sub_svs_p2p argument.