[Bug fortran/92311] Fortran and OpenMP use_device_ptr and OpenACC attach_ptr/dettach_ptr
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 14 12:29:31 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92311
--- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Nichols A. Romero from comment #0)
> The error for the OpenMP is shown below:
> 29 | !$omp target data use_device_ptr(this_bin)
> | 1
> Error: TARGET DATA must contain at least one MAP clause at (1)
As mentioned, this is OpenMP 5.0 and not yet implemented (for Fortran; it is
already implemented for C/C++).
→ This should be the only remaining issue of the discussion in this PR.
> For the OpenACC program
> 27 | !$acc enter data attach(this_bin)
> | 1
This one _works now_ with GCC 10 (or the being-developed version GCC 11 alias
mainline/main/trunk).
Additionally, the OpenMP 4.5 (but not OpenMP 5.0) mapping of derived-type
components is now supported in GCC 11 (just committed). (For C/C++, the OpenMP
4.5 struct element mapping is supported since GCC 6.)
More information about the Gcc-bugs
mailing list