The Portland Group compilers is a suite of high performance compilers and associated tools.

Category:  Compiler


Usage Notes

Show the software versions:  module avail pgi

Loading the module will set the path and any necessary variables:  module load pgi/version


Example of compiling hello-world with the PGI C compiler:

[user@vortex:~]$ vi hello-world.c

#include <stdio.h>

int main() {

   printf("Hello world!\n");


[user@vortex:~]$ module avail pgi

-------------------------- /util/Modules/modulefiles ---------------------------


[user@vortex:~]$ module load pgi/14.10

[user@vortex:~]$ pgcc -o hello-pgi hello-world.c  

[user@vortex:~]$ ./hello-pgi  

Hello world!