A reentrant example that runs two threads then run two instances of the solver in each thread.
More...
A reentrant example that runs two threads then run two instances of the solver in each thread.
- Copyright
- 2015-2024 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
- Version
- 6.4.0
- Author
- Mathieu Faverge
-
Matias Hastaran
-
Pierre Ramet
-
Tony Delarue
-
Alycia Lisito
- Date
- 2024-07-05
/
#include <pthread.h>
#include <spm.h>
spmatrix_t *spm;
spmatrix_t spm2;
void *x, *b, *x0 = NULL;
size_t size;
int check;
int scatter;
int rc;
int nrhs = 1;
solve_param_t param = *(solve_param_t *)arg;
}
check = param.check;
scatter = param.scatter;
spmScalMat( 1./normA, spm, nrhs, b, spm->nexp );
memcpy( b, x, size );
}
double dparm[DPARM_SIZE];
spm_driver_t driver;
char *filename = NULL;
int nbcallingthreads = 2;
solve_param_t *solve_param;
pthread_t *threads;
int scatter = 0;
int check = 1;
int rc = 0;
int i;
Definition in file reentrant.c.