This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: F95 vectorization support


Dennis Wassel wrote:
2008/6/18 Tobias Burnus <burnus@net-b.de>:
(The task feature of OpenMP 3 is really nice
And what would that task feature do (in a nutshell)?

New OpenMP 3 features (specs: http://openmp.org/wp/openmp-specifications/):


o tasking - to enable dynamic creation of unstructured parallelism
o loop collapse directive â to transform a perfectly nested loop nest into a single loop being executed in parallel
o schedule (auto) and omp_set_schedule() - enhanced loop scheduling control
o improved nested parallelism support



This allows to parallize for instance the following (cf. http://cobweb.ecn.purdue.edu/ParaMount/iwomp2008/documents/omp30)


#pragma omp parallel
#pragma omp single
{
for ( e = l->first; e ; e = e->next )
  #pragma omp task firstprivate(e)
  process(e);
}

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]