[PATCH] D95469: [flang][openacc] Allow multiple wait clauses

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 07:05:18 PST 2021


clementval added inline comments.


================
Comment at: flang/test/Semantics/OpenACC/acc-data.f90:62
 
   !$acc enter data create(aa) wait(wait1)
 
----------------
kiranchandramohan wrote:
> SouraVX wrote:
> > Looking at it, I assume `wait1` is an event of some kind ? That `data create` directive is waiting for finishing ?
> > Then again where is `wait1` defined ?
> > Could you point me to the spec WRT this clause.
> Spec: https://www.openacc.org/sites/default/files/inline-images/Specification/OpenACC-3.1-final.pdf
> 
> In Section 2.16.2 it says "If there is an argument to the wait clause, it must be a wait argument (See 2.16.3)."
> 
> Section 2.16.3/Page 80
> ```
> The wait argument, if it appears, must be a wait-argument where wait-argument is:
> [ devnum : int-expr : ] [ queues : ] int-expr-list
> ```
> 
The @kiranchandramohan for mentioning the spec. Basically the most basic wait argument is just a int-expr. You can see it as a stream number in CUDA. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95469/new/

https://reviews.llvm.org/D95469



More information about the llvm-commits mailing list