StarNEig User's Guide  v0.1.7
A task-based library for solving dense nonsymmetric eigenvalue problems
blacs_helpers.h
Go to the documentation of this file.
1 
39 #ifndef STARNEIG_BLACS_HELPERS_H
40 #define STARNEIG_BLACS_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 #ifndef STARNEIG_ENABLE_BLACS
53 #error "This header should be included only when STARNEIG_ENABLE_BLACS is defined."
54 #endif
55 
56 #include <starneig/blacs_matrix.h>
57 
65 
70 
75 
79 #define STARNEIG_BLACS_GET_DEFAULT_CONTEXT 0
80 
84 
94 void starneig_blacs_pinfo(int *my_rank, int *rank_count);
95 
109 
131  starneig_blacs_context_t system_context, char *order,
132  int rows, int cols);
133 
153  starneig_blacs_context_t context, int *rows, int *cols, int *row, int *col);
154 
171  starneig_blacs_context_t context, int process, int *row, int *col);
172 
180 
187 void starneig_blacs_exit(int cont);
188 
212  int n, int nb, int iproc, int isrcproc, int nprocs);
213 
222 int starneig_numroc(int n, int nb, int iproc, int isrcproc, int nprocs);
223 
257  struct starneig_blacs_descr *descr, int m, int n, int sm, int sn,
258  int irsrc, int icsrc, starneig_blacs_context_t context, int ld);
259 
268  struct starneig_blacs_descr *descr, int m, int n, int sm, int sn,
269  int irsrc, int icsrc, starneig_blacs_context_t context, int ld);
270 
274 
275 #ifdef __cplusplus
276 }
277 #endif
278 
279 #endif // STARNEIG_BLACS_HELPERS_H
starneig_blacs_query_id_t
int starneig_blacs_query_id_t
Data type for blacs_get() function query id.
Definition: blacs_helpers.h:74
starneig_numroc
int starneig_numroc(int n, int nb, int iproc, int isrcproc, int nprocs)
Computes the number of matrix rows/columns owned by a given process. Deprecated.
starneig_blacs_pcoord
void starneig_blacs_pcoord(starneig_blacs_context_t context, int process, int *row, int *col)
Queries BLACS process grid coordinates.
starneig_blacs_exit
void starneig_blacs_exit(int cont)
Releases all contexts and related resources.
starneig_blacs_descr
BLACS descriptor.
Definition: blacs_matrix.h:140
starneig_blacs_pinfo
void starneig_blacs_pinfo(int *my_rank, int *rank_count)
Queries process rank information.
starneig_blacs_context_t
int starneig_blacs_context_t
BLACS context.
Definition: blacs_matrix.h:75
blacs_matrix.h
This file contains data types and functions for BLACS formatted distributed matrices.
starneig_blacs_gridinit
starneig_blacs_context_t starneig_blacs_gridinit(starneig_blacs_context_t system_context, char *order, int rows, int cols)
Initializes a BLACS process grid.
starneig_blacs_descinit
int starneig_blacs_descinit(struct starneig_blacs_descr *descr, int m, int n, int sm, int sn, int irsrc, int icsrc, starneig_blacs_context_t context, int ld)
Initializes a BLACS descriptor.
starneig_blacs_gridinfo
void starneig_blacs_gridinfo(starneig_blacs_context_t context, int *rows, int *cols, int *row, int *col)
Queries BLACS process grid information.
starneig_blacs_get
int starneig_blacs_get(starneig_blacs_context_t context, starneig_blacs_query_id_t query)
Returns BLACS context's internal defaults.
configuration.h
This file contains StarNEig library configuration.
starneig_blacs_gridexit
void starneig_blacs_gridexit(starneig_blacs_context_t context)
Releases process grid specific resources.
starneig_blacs_numroc
int starneig_blacs_numroc(int n, int nb, int iproc, int isrcproc, int nprocs)
Computes the number of matrix rows/columns owned by a given process.
starneig_descinit
int starneig_descinit(struct starneig_blacs_descr *descr, int m, int n, int sm, int sn, int irsrc, int icsrc, starneig_blacs_context_t context, int ld)
Initializes a BLACS descriptor. Deprecated.