https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92311

--- Comment #4 from Nichols A. Romero <naromero at anl dot gov> ---
Jakub,

My apologies for wasting your time. I had asked a colleague to help me put a
simplified test case together, after closer inspection it did not actually
reproduce the use case from the larger scientific code.  

As far as I can tell, there is no bug with OpenMP frontend. Only a bug in my
understanding of the use_device_ptr. I was told it was equivalent to OpenACC
detach/attach, but I think this is not the case. Most examples that I find
online are for passing pointers to CUDA library.

I can now get the attach coded to compile with XLF and GCC 9.2 with OpenMP and
they behave identically -- more importantly, it actually reflects that use case
in the larger scientific code.

The OpenACC code doesn't compile, but I think this may be because OpenACC 2.6
is only partially implemented in Fortran ???

Reply via email to