1
Fork 0
mirror of https://github.com/Steffo99/unimore-hpc-assignments.git synced 2024-11-29 11:34:21 +00:00

kernel_atax: Try parallelizing the first cycle

Doesn't seem to create a big difference
This commit is contained in:
Steffo 2022-11-16 01:43:10 +01:00
parent d5664a9393
commit 57fe10ad6a
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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;