Hi! On 2020-04-07T00:12:41+0430, MAHDI LOTFI via Gcc <gcc@gcc.gnu.org> wrote: > I am a researcher from Jam Petrochemical company I want to use OpenACC with > GCC compiler(FORTRAN language).
Thanks for your interest. Please, use a proper Subject for your emails (see how I changed it), and include any relevant information. For example: > I have a question about your compiler. Which GCC version? Binary packages retrieved from somewhere (such as distribution packages; that's all off-topic here), or built from source, exact commands used for building, etc.? > I could not offload OpenACC computing block on AMD Radeon GPU!! ..., and which "AMD Radeon GPU" exactly? > and > OpenACC code run on the host(CPU). > How can I select AMD Radeon GPU as target device? > I run mu code with : > gfortran -fopenacc -fno-automatic -s Test.f90 -o Test I don't know off-hand what '-s' means here, but otherwise that should be good -- assuming GCC has been built with AMD GPU offloading support, has been properly installed, and does support your GPU hardware. Otherwise, host fallback is the default. Grüße Thomas ----------------- Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter