SyntaxFix
Write A Post
Hire A Developer
Questions
These are equivalent.
#pragma omp parallel spawns a group of threads, while #pragma omp for divides loop iterations between the spawned threads. You can do both things at once with the fused #pragma omp parallel for directive.
#pragma omp parallel
#pragma omp for
#pragma omp parallel for