Search found 2 matches

by bsteinb
Thu Sep 06, 2018 10:44 am
Forum: Using OpenMP
Topic: omp_get_num_threads behavior under gcc and Intel
Replies: 1
Views: 2417

Re: omp_get_num_threads behavior under gcc and Intel

This seems to be a bug in gfortran. If you split up the combined parallel do construct into a do construct nested inside a parallel construct you get the same behaviour as with the Intel compiler: !$omp parallel !$omp do do i = 1, omp_get_num_threads() write (*,*) i end do !$omp end do !$omp end par...
by bsteinb
Mon Sep 03, 2018 3:09 am
Forum: OpenMP 4.5 Examples Discussion
Topic: Clarification for 7.3 private Clause
Replies: 0
Views: 16448

Clarification for 7.3 private Clause

Hi I find it difficult to understand what is going on in section 7.3 regarding the private clause in the Examples document. Specifically, the explanatory comment in private.2.c which I will reproduce here (and private.2.f which is very similar) seem to be at odds with my understanding of the scoping...