Hi,
I am using OpenMP target data directives in POT3D (GitHub - predsci/POT3D: POT3D: High Performance Potential Field Solver · GitHub) .
I set the device number based on the shared MPI rank (1 MPI rank per GPU) with:
!$ call omp_set_default_device (iprocsh)
On some other compilers, there was a problem where this was being seen as a comment due to the space(s) between the $ and the “call”.
However, if I remove the space(s):
!$call omp_set_default_device (iprocsh)
the code no longer selects the device and breaks the code.
According to an AI search, it should not matter if there are spaces or not but that NOT having a space is better conforming.
Since i need to run on multiple compilers, could nvfortran be updated to have this work without the space(s)?
Thanks!
– Ron