Dear Nvidia HPC Compiler team
I posted a bug report last month that you were kind and fixed right away. This motivated me to try to report some of the other bugs that I have stumbled upon when doing OpenMP target offloading with NVC. I hope this will help you to improve your HPC compilers, which I am really satisfied with despite the bugs.
The issue is that you cannot embed a
target teams clause in a task region. However, if you make a wrapper function for the target region and call the function from a task, the exact same code works.
This time I have prepared a small example for you that you can take a look at: