PaStiX Handbook  6.2.1
api.c File Reference
#include "common.h"
#include "graph/graph.h"
#include "pastix/order.h"
#include "blend/solver.h"
#include "bcsc/bcsc.h"
#include "isched.h"
#include <sys/types.h>
#include <sys/stat.h>
#include "models.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE   1
 
#define pastix_mkdir(__str)   mkdir( (__str), 0700 )
 

Functions

void pastix_gendirectories (pastix_data_t *pastix_data)
 Generate a unique temporary directory to store output files. More...
 
char * pastix_fname (const char *dirname, const char *filename)
 Generate the full filename within local or global directory. More...
 
FILE * pastix_fopenw (const char *dirname, const char *filename, const char *mode)
 Open a file in the unique directory of the pastix instance. More...
 
FILE * pastix_fopen (const char *filename)
 Open a file in the current directory in read only mode. More...
 
void pastixWelcome (const pastix_data_t *pastix)
 Print information about the solver configuration. More...
 
void pastixSummary (const pastix_data_t *pastix)
 Print summary information. More...
 
void pastixInitParam (pastix_int_t *iparm, double *dparm)
 Initialize the iparm and dparm arrays to their default values. More...
 
static void apiInitMPI (pastix_data_t *pastix, PASTIX_Comm comm, int autosplit)
 Internal function that setups the multiple communicators in order to perform the ordering step in MPI only mode, and the factorization in MPI+Thread mode with the same amount of ressources. More...
 
void pastixInitWithAffinity (pastix_data_t **pastix_data, PASTIX_Comm pastix_comm, pastix_int_t *iparm, double *dparm, const int *bindtab)
 Initialize the solver instance with a bintab array to specify the thread binding. More...
 
void pastixInit (pastix_data_t **pastix_data, PASTIX_Comm pastix_comm, pastix_int_t *iparm, double *dparm)
 Initialize the solver instance. More...
 
void pastixFinalize (pastix_data_t **pastix_data)
 Finalize the solver instance. More...
 
void pastixDumpParam (const pastix_data_t *pastix_data)
 Dump the iparm and dparm parameters in a CSV file. More...
 
int pastixCheckParam (const pastix_int_t *iparm, const double *dparm)
 Check the values of iparm and dparm arrays. More...
 

Detailed Description

PaStiX API routines

Version
6.2.1
Author
Xavier Lacoste
Pierre Ramet
Mathieu Faverge
Esragul Korkmaz
Gregoire Pichon
Matias Hastaran
Tony Delarue
Date
2021-07-02

Definition in file api.c.

Function Documentation

◆ apiInitMPI()

static void apiInitMPI ( pastix_data_t *  pastix,
PASTIX_Comm  comm,
int  autosplit 
)
inlinestatic

Internal function that setups the multiple communicators in order to perform the ordering step in MPI only mode, and the factorization in MPI+Thread mode with the same amount of ressources.

Parameters
[in,out]pastixThe pastix datat structure to initialize.
[in]commThe MPI communicator associated to the pastix data structure
[in]autosplitEnable automatic split when multiple processes run on the same node

Definition at line 579 of file api.c.

Referenced by pastixInitWithAffinity().