taskwait semantics

Discuss the OpenMP 3.0 API Specifications with the OpenMP Arch. Review Board. (Read Only)

taskwait semantics

Postby matsbror » Sat Sep 27, 2008 11:42 pm

The specification states: "The current task region is suspended at the task scheduling point until execution
of all its child tasks generated before the taskwait region are completed."

Does this apply to grand-children and other descendants as well?

As I understand the spec, OpenMP allows for tasks to finish before their child-tasks have finished (in contrast to e.g. cilk) and therefore I interpret the semantics of taskwait to apply only for direct children. Other descendants need to be synchronized using barriers instead. Am I right?

Mats
matsbror
 
Posts: 1
Joined: Fri Sep 26, 2008 10:44 pm

Re: taskwait semantics

Postby Yuan » Mon Sep 29, 2008 2:32 pm

Yes. 'taskwait' waits for immediate children only.

-- Yuan
Yuan
 
Posts: 2
Joined: Sat May 03, 2008 12:36 pm

Re: taskwait semantics

Postby DeLoghi » Fri Dec 05, 2008 11:36 pm

DeLoghi
 
Posts: 1
Joined: Fri Dec 05, 2008 11:32 pm


Return to OpenMP 3.0 API Specifications

Who is online

Users browsing this forum: No registered users and 0 guests

cron