OpenACC directives at mpas_dmpar.F

This post was from a previous version of the WRF&MPAS-A Support Forum. Please do not add new replies here and if you would like the thread moved out of the Historical / Archive section then contact us, making sure to include the link of the thread to be moved.

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.


Staff member
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.