Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
compilation:pgi [2016/11/16 11:48] – admincompilation:pgi [2020/01/10 15:49] (Version actuelle) – [Installed version] admin
Ligne 2: Ligne 2:
 The PGI Compilers are a set of commercial (or community) Fortran,C and C++ compilers from the Portland Group. To make use of them, first start an interactive GPU session and run one of the following module commands, depending on which version of the compilers you wish to use.  The PGI Compilers are a set of commercial (or community) Fortran,C and C++ compilers from the Portland Group. To make use of them, first start an interactive GPU session and run one of the following module commands, depending on which version of the compilers you wish to use. 
  
 +<note tip>The main feuture of PGI compiler is that implement [[:openacc|OpenACC]] (Open Accelerator programming standard).</note> 
 ===== Installed version ===== ===== Installed version =====
-  * Version 16.10+  *  
 +<code bash>$ module avail pgi 
 +pgi/19.4 </code>  
 +===== Compiling Applications ===== 
 + 
 +Load the compiler settings
 <code bash> <code bash>
-$ module load pgi/16.10+$ module load pgi/19.4
 </code>  </code> 
  
 +Compiler C program
 +<code bash>
 +$ pgcc program.c -o program
 +</code>
 +
 +Compile C++ program
 +<code bash>
 +$ pgc++ program.cpp -o program
 +</code>
 +
 +Compile Fortran program
 +<code bash>
 +$ pgf90 program.f90 -o program
 +</code>
 +
 +==== Compilers Options ====
 +
 +^Option^Description^
 +|''-O0/-O1/-O2/-O3/-O4''|Specifies general optimization at four levels. (The default is 2.)|
 +|''-mp'' |Enables compiler recognition of OpenMP directives.|
 +|''-acc'' |Enables compiler recognition of OpenACC directives.|
 +|''-Mconcur''| Enables autothreading.|
 +|''-fast'' | Chooses generally optimal flags for the target platform.|
 +|''-Mipa=fast'' | Enables interprocedural optimization.|
 +|''-Minfo=accel''| Print optimization information|
 +
 +
 +====== Links ======
 +  * https://www.pgroup.com/resources/docs.php
  
  • compilation/pgi.1479296883.txt.gz
  • Dernière modification : 2016/11/16 11:48
  • de admin