ITS/High Performance Computing Cluster/help on Portland Group compilers
[edit] Using The Portland Group Compilers On The ITS HPC Cluster
To use any of the Portland Group compilers, first load the pgi module:
module load pgi
[edit] Compiling a C or C++ Program
To compile the C source file "test.c" with the Portland Group C compiler, use the command
pgcc test.c
The Portland Group C compiler assumes that files ending in ".c" are C files to be compiled. Use the command "man pgcc" to see the manual pages for more information.
To compile the C++ source file "test.cpp" with the Portland Group C++ compiler, use the command
pgCC test.cpp
The Portland Group C++ compiler assumes that files ending in ".cpp", ".cc", ".c", and ".C" are C++ files to be compiled. Use the command "man pgCC" to see the manual pages for more information.
[edit] Compiling a FORTRAN Program
To compile the FORTRAN 77 source file "test.f" with the Portland Group FORTRAN 77 compiler, use the command
pgf77 test.f
The Portland Group FORTRAN 77 compiler assumes that files ending in ".f" are FORTRAN 77 files to be compiled. Use the command "man pgf77" to see the manual pages for more information.
To compile the FORTRAN 90 source file "test.f" with the Portland Group FORTRAN 90 compiler, use the command
pgf90 test.f
The Portland Group FORTRAN 90 compiler assumes that files ending in ".f" and ".f90" are FORTRAN 90 files to be compiled. Use the command "man pgf90" to see the manual pages for more information.
This article is a stub. You can help by adding to it.
| ITS High Performance Cluster Articles | |
|---|---|
| This article is part of the ITS Cluster series of articles | |
| FAQ | Intel compilers | GNU compilers | Portland Group compilers | |
| Intel Math Kernel Library | MINPACK | ScaLAPACK | GSL | FFTW3 | MPICH | NAG | |
| R | Mathematica | NAMD | GROMACS | Amber | MATLAB | |
| FLUENT | GAMESS | Gaussian | MOLCAS | LAMMPS | APBS | |
