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

--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
(In reply to Kiril Dichev from comment #0)
> Code runs fine without GPU offloading, or with offloading with PGI compiler.

With PGI + offloading: that's for that AMD Vega machine or for some Nvidia
system?

> Sample code with single OpenACC directive in for loop

The example code just contains only a module without a main program. Hence, I
added at the end:

use mymodule
implicit none (external, type)
call init
call do_work
call terminate
end

Using that on a gfx906 Vega 20 with GCC 11.0.0 20210203 and -march=gfx906 – and
works fine.

I have now also tried it with: gcc version 10.2.1 20210206 – same result.

 * * *

Especially assuming that AMD system is not the same system as the system used
with the PGI compiler: If I look for HSA_STATUS_ERROR_OUT_OF_RESOURCES, I run
into https://github.com/RadeonOpenCompute/ROCm/issues/1080

That person did have such an error due to permission problems. I assume that it
works on your side, but just to check: Does /opt/rocm/bin/rocminfo work?

If it does, does the program as above work (your module + the lines by me to
run it)? Are there more messages? Which compiler version did you use? Is this a
Linux vendor compiler (which one?), some pre-compiled compiler or self
compiled?

Reply via email to