Does the following code just parallelize the first (outer) loops, or it parallelize the entire nested loops?
#pragma omp parallel for for (int i=0;i&
OpenMP only parallelizes the loop next to the pragma. You can parallelize the inner loop too if you want to but it won't be done automatically.