Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

OpenACC directives at mpas_dmpar.F

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

While trying to compile the app with OpenACC, I've noticed some issues. More specifically, the mpas_dmpar.F code makes the following call:
 6475 |           !$acc data present(tempRbuffer, array, compactHaloInfo, dimsizes, nHaloLayers, gpu_nList_send, gpu_idx_send, gpu_bufferOffset_send) async(counter+1)
There are several lines with a similar structure. The issue is that 'acc data' is not supposed to use 'async' as a clause (this is also true for v3.0) as described in the OpenACC documentation.
One of the compilers also complained about !$acc enter data copyin(field%array) lines, but I have spent zero time troubleshooting it so it might or might not be an issue. I just took notice of the error and share it in case it's of any help.
Thanks so much for pointing out these issues! Bringing the GPU-enabled MPAS-A code up-to-date with the v7.0 release is a work in progress, and we'll work to address these issues as we go.