cuquantum.cutensornet.distributed_reset_configuration

cuquantum.cutensornet.distributed_reset_configuration(intptr_t handle, intptr_t comm_ptr, size_t comm_size)[source]

Reset the distributed communicator.

Parameters
  • handle (intptr_t) – The library handle.

  • comm_ptr (intptr_t) – The pointer to the provided communicator.

  • comm_size (size_t) – The size of the provided communicator (sizeof(comm)).

Note

For using MPI communicators from mpi4py, the helper function get_mpi_comm_pointer() can be used:

cutn.distributed_reset_configuration(handle, *get_mpi_comm_pointer(comm))