StarNEig User's Guide  v0.1.7
A task-based library for solving dense nonsymmetric eigenvalue problems
distr_helpers.h
Go to the documentation of this file.
1 
39 #ifndef STARNEIG_DISTR_HELPERS_H
40 #define STARNEIG_DISTR_HELPERS_H
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 #include <starneig/configuration.h>
47 
48 #ifndef STARNEIG_ENABLE_MPI
49 #error "This header should be included only when STARNEIG_ENABLE_MPI is defined."
50 #endif
51 
52 #include <stddef.h>
53 #include <mpi.h>
54 
62 
67 
76 void starneig_mpi_set_comm(MPI_Comm comm);
77 
83 MPI_Comm starneig_mpi_get_comm();
84 
88 
93 
106 void starneig_mpi_broadcast(int root, size_t size, void *buffer);
107 
115 void starneig_broadcast(int root, size_t size, void *buffer);
116 
120 
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif // STARNEIG_DISTR_HELPERS_H
starneig_mpi_get_comm
MPI_Comm starneig_mpi_get_comm()
Returns the library MPI communicator.
starneig_mpi_set_comm
void starneig_mpi_set_comm(MPI_Comm comm)
Sets a MPI communicator for the library.
configuration.h
This file contains StarNEig library configuration.
starneig_mpi_broadcast
void starneig_mpi_broadcast(int root, size_t size, void *buffer)
Broadcast a buffer.
starneig_broadcast
void starneig_broadcast(int root, size_t size, void *buffer)
Broadcast a buffer. Deprecated.