StarNEig User's Guide  master branch
A task-based library for solving dense nonsymmetric eigenvalue problems
Distributed Memory / Helper functions

Distributed memory helper functions. More...

MPI communicator

void starneig_mpi_set_comm (MPI_Comm comm)
 Sets a MPI communicator for the library. More...
 
MPI_Comm starneig_mpi_get_comm ()
 Returns the library MPI communicator. More...
 

Broadcast

void starneig_mpi_broadcast (int root, size_t size, void *buffer)
 Broadcast a buffer. More...
 

Detailed Description

Distributed memory helper functions.

Function Documentation

◆ starneig_mpi_set_comm()

void starneig_mpi_set_comm ( MPI_Comm  comm)

Sets a MPI communicator for the library.

Should be called before the starneig_node_init() interface function.

Parameters
[in]commThe library MPI communicator.

◆ starneig_mpi_get_comm()

MPI_Comm starneig_mpi_get_comm ( )

Returns the library MPI communicator.

Returns
The library MPI communicator.

◆ starneig_mpi_broadcast()

void starneig_mpi_broadcast ( int  root,
size_t  size,
void *  buffer 
)

Broadcast a buffer.

Parameters
[in]rootThe rank that is going to broadcast the buffer.
[in]sizeThe size of the buffer.
[in,out]bufferA pointer to the buffer.