From 57fe10ad6ab5e93c50bb2e07cc57b84b089bd5da Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 16 Nov 2022 01:43:10 +0100 Subject: [PATCH] `kernel_atax`: Try parallelizing the first cycle Doesn't seem to create a big difference --- OpenMP/linear-algebra/kernels/atax/atax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenMP/linear-algebra/kernels/atax/atax.c b/OpenMP/linear-algebra/kernels/atax/atax.c index a446833..d467e34 100644 --- a/OpenMP/linear-algebra/kernels/atax/atax.c +++ b/OpenMP/linear-algebra/kernels/atax/atax.c @@ -65,7 +65,7 @@ static void kernel_atax(int nx, int ny, { int i, j; - // TODO: Optimizable loop, no dependencies + #pragma omp parallel for num_threads(4) schedule(static) for (i = 0; i < _PB_NY; i++) y[i] = 0;