Re: Refactor openacc wait routine

2015-07-20 Thread Nathan Sidwell
On 07/19/15 08:37, Nathan Sidwell wrote: this trunk patch refactors libgomp's goacc_wait, which is used for two different purposes. 1) when openacc pragmas specify a (non-zero) waits. 2) when the wait pragma itself specifies a zero number of waits. this leads to #2 calling goacc_wait with num_

Refactor openacc wait routine

2015-07-19 Thread Nathan Sidwell
this trunk patch refactors libgomp's goacc_wait, which is used for two different purposes. 1) when openacc pragmas specify a (non-zero) waits. 2) when the wait pragma itself specifies a zero number of waits. this leads to #2 calling goacc_wait with num_waits=0, and forces #1 to never do that.