Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| compilation:pgi [2016/11/16 11:38] – créée admin | compilation:pgi [2020/01/10 15:49] (Version actuelle) – [Installed version] admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== PGI Compiler ====== | ====== PGI Compiler ====== | ||
| 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 [[: | ||
| + | ===== Installed version ===== | ||
| + | * | ||
| + | <code bash>$ module avail pgi | ||
| + | pgi/19.4 </ | ||
| + | ===== Compiling Applications ===== | ||
| + | |||
| + | Load the compiler settings | ||
| + | <code bash> | ||
| + | $ module load pgi/19.4 | ||
| + | </ | ||
| + | |||
| + | Compiler C program | ||
| + | <code bash> | ||
| + | $ pgcc program.c -o program | ||
| + | </ | ||
| + | |||
| + | Compile C++ program | ||
| + | <code bash> | ||
| + | $ pgc++ program.cpp -o program | ||
| + | </ | ||
| + | |||
| + | Compile Fortran program | ||
| + | <code bash> | ||
| + | $ pgf90 program.f90 -o program | ||
| + | </ | ||
| + | |||
| + | ==== Compilers Options ==== | ||
| + | |||
| + | ^Option^Description^ | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| + | |||
| + | |||
| + | ====== Links ====== | ||
| + | * https:// | ||
| + | |||