commit 57106c46c0aaca430a7970e6f6be27f38b568279
parent 2bfab77721b5c4060317343582ec2d0caa6842a9
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 6 Apr 2018 12:13:12 +0200
Correctly handle the #threads in sdis_solve_probe function
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/sdis_solve.c b/src/sdis_solve.c
@@ -211,6 +211,7 @@ sdis_solve_probe
if(res != RES_OK) goto error;
/* Here we go! Launch the Monte Carlo estimation */
+ omp_set_num_threads((int)scn->dev->nthreads);
#pragma omp parallel for schedule(static) reduction(+:weight,sqr_weight,N)
for(irealisation = 0; irealisation < nrealisations; ++irealisation) {
res_T res_local;