Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initiate porting to DO CONCURRENT loops? #25

Open
p-costa opened this issue Aug 20, 2021 · 1 comment
Open

initiate porting to DO CONCURRENT loops? #25

p-costa opened this issue Aug 20, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@p-costa
Copy link
Owner

p-costa commented Aug 20, 2021

except for those with reductions (to be supported by the next standard anyway), most loops could be easily ported.

@p-costa p-costa added the enhancement New feature or request label Aug 20, 2021
@p-costa p-costa self-assigned this Aug 20, 2021
@p-costa
Copy link
Owner Author

p-costa commented Aug 20, 2021

N.B. gfortran does not support yet F2018's locality clauses, so I need to do something like:

 #ifdef _LOCALITY_DO_CONCURRENT
     do concurrent (i=lo(1):hi(1),j=lo(2):hi(2),k=lo(3):hi(3)) &
     default(none) local(i,j,k) shared(up,vp,wp,p,dxf,dyf,dzf,dt)
 #else
     do concurrent (i=lo(1):hi(1),j=lo(2):hi(2),k=lo(3):hi(3))
 #endif

to support the current GNU implementation too. EDIT: a __GFORTRAN__ macro seems more appropriate in that case.

@p-costa p-costa changed the title initiate porting to DO CONCURRENT loops initiate porting to DO CONCURRENT loops? Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant