PGI: PGI and OpenACC

From Define Wiki
Revision as of 12:44, 19 December 2014 by K mouza (talk | contribs) (Created page with "== Compiling the code with OpenACC support == In order to find the correct flags for the compiler run: pgaccelinfo The flags are in the last output line. Example: pgicc/p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Compiling the code with OpenACC support

In order to find the correct flags for the compiler run:

pgaccelinfo

The flags are in the last output line. Example:

pgicc/pgfortran -ta=tesla:cc35

Note: Don't forget to add the OpenACC flags to the linker:

pgicc/pgfortran -acc -acclibs

Issues met