reentrant.c

A simple example : run two threads then run two instances of PaStiX in each.

Summary
reentrant.cA simple example : run two threads then run two instances of PaStiX in each.
solv_paramStructure containing information to give to each thread.
solve_param
Variables
ncol
nbthread
verbosemode
ordering
incomplete
level_of_fill
amalgamation
ooc
argc
solve_smpThread routine to launch the solver
mainsee reentrant.c

solv_param

Structure containing information to give to each thread.

Contains

ncolnumber of columns
colptrIndexes of first element of each column in row and values
rowsRow of each element of the matrix
valuesValue of each element of the matrix
rhsright-hand-side member
typetype of the matrix
rhstypetype of the right-hand-side member
nbthreadnumber of threads
verbosemodeVerbose mode
orderingordering library.

Variables

ncol

pastix_int_t ncol

nbthread

int nbthread

verbosemode

int verbosemode

ordering

int ordering

incomplete

int incomplete

level_of_fill

int level_of_fill

amalgamation

int amalgamation

ooc

int ooc

argc

int argc

solve_smp

Thread routine to launch the solver

Parameters

arga pointer to a solve_param structure.

main

int main (int argc,
char **argv)

see reentrant.c

pastix_int_t ncol
int nbthread
int verbosemode
int ordering
int incomplete
int level_of_fill
int amalgamation
int ooc
int argc
int main (int argc,
char **argv)
see reentrant.c
A simple example : run two threads then run two instances of PaStiX in each.
Close