QuIDS: Quantum Irregular Dynamic Simulator
Functions
quids::mpi::utils Namespace Reference

QuIDS mpi utility function and variable namespace. More...

Functions

void make_equal_pairs (size_t *size_begin, size_t *size_end, int *pair_id)
 function to partition into pair of almost equal sum
 
template<typename T >
MPI_Datatype get_mpi_datatype (T x)
 function to get the corresponding MPI type of a variable More...
 
MPI_Datatype get_mpi_datatype (float x)
 
MPI_Datatype get_mpi_datatype (double x)
 
MPI_Datatype get_mpi_datatype (long double x)
 
MPI_Datatype get_mpi_datatype (std::complex< float > x)
 
MPI_Datatype get_mpi_datatype (std::complex< double > x)
 
MPI_Datatype get_mpi_datatype (std::complex< long double > x)
 
MPI_Datatype get_mpi_datatype (bool x)
 
MPI_Datatype get_mpi_datatype (char x)
 
MPI_Datatype get_mpi_datatype (signed char x)
 
MPI_Datatype get_mpi_datatype (unsigned char x)
 
MPI_Datatype get_mpi_datatype (short x)
 
MPI_Datatype get_mpi_datatype (unsigned short x)
 
MPI_Datatype get_mpi_datatype (int x)
 
MPI_Datatype get_mpi_datatype (unsigned int x)
 
MPI_Datatype get_mpi_datatype (long x)
 
MPI_Datatype get_mpi_datatype (unsigned long x)
 

Detailed Description

QuIDS mpi utility function and variable namespace.

Function Documentation

◆ get_mpi_datatype()

template<typename T >
MPI_Datatype quids::mpi::utils::get_mpi_datatype ( x)

function to get the corresponding MPI type of a variable

Should be reimplemented for an exotic PROBA_TYPE type.

Template Parameters
Ttype of the variable
Parameters
[in]xvariable to type