get_mpi_comm_pointer#

cuquantum.tensornet.get_mpi_comm_pointer(comm)[source]#

Simple helper to get the address to and size of a MPI_Comm handle.

Parameters:

comm (mpi4py.MPI.Comm) – An MPI communicator.

Returns:

A pair of int values representing the address and the size.

Return type:

tuple