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@rush:~]$ vi hello-world.c

#include <stdio.h>

int main() {

   printf("Hello world!\n");

}


[user@rush:~]$ module avail pgi

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

pgi/14.10


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

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

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

Hello world!