39 #ifndef STARNEIG_BLACS_HELPERS_H 40 #define STARNEIG_BLACS_HELPERS_H 48 #ifndef STARNEIG_ENABLE_MPI 49 #error "This header should be included only when STARNEIG_ENABLE_MPI is defined." 52 #ifndef STARNEIG_ENABLE_BLACS 53 #error "This header should be included only when STARNEIG_ENABLE_BLACS is defined." 79 #define STARNEIG_BLACS_GET_DEFAULT_CONTEXT 0 212 int n,
int nb,
int iproc,
int isrcproc,
int nprocs);
222 int starneig_numroc(
int n,
int nb,
int iproc,
int isrcproc,
int nprocs);
279 #endif // STARNEIG_BLACS_HELPERS_H int starneig_blacs_query_id_t
Data type for blacs_get() function query id.
Definition: blacs_helpers.h:74
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.
BLACS descriptor.
Definition: blacs_matrix.h:140
void starneig_blacs_gridexit(starneig_blacs_context_t context)
Releases process grid specific resources.
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.
This file contains StarNEig library configuration.
void starneig_blacs_exit(int cont)
Releases all contexts and related resources.
int starneig_blacs_context_t
BLACS context.
Definition: blacs_matrix.h:75
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.
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.
int starneig_blacs_get(starneig_blacs_context_t context, starneig_blacs_query_id_t query)
Returns BLACS context's internal defaults.
starneig_blacs_context_t starneig_blacs_gridinit(starneig_blacs_context_t system_context, char *order, int rows, int cols)
Initializes a BLACS process grid.
void starneig_blacs_pinfo(int *my_rank, int *rank_count)
Queries process rank information.
This file contains data types and functions for BLACS formatted distributed matrices.
void starneig_blacs_pcoord(starneig_blacs_context_t context, int process, int *row, int *col)
Queries BLACS process grid coordinates.
void starneig_blacs_gridinfo(starneig_blacs_context_t context, int *rows, int *cols, int *row, int *col)
Queries BLACS process grid information.