Skip to content


Available Compilers

There are several compilers for different programming languages available on the cluster:

  • C/C++
  • Fortran 77/90/95/HPF
  • Unified Parallel C
  • Java

The C/C++ and Fortran compilers are provided by:

Open source:

  • Clang/LLVM

Commercial licenses:

  • Intel
  • PGI

Intel Compilers

For information about the usage of Intel Compilers and other Intel products, read the Intel Parallel studio page.

PGI Compilers

The Portland Group Cluster Development Kit (PGI CDK).

$ ml PGI
$ pgcc -v
$ pgc++ -v
$ pgf77 -v
$ pgf90 -v
$ pgf95 -v
$ pghpf -v

The PGI CDK also incudes tools for debugging and profiling.

PGDBG OpenMP/MPI debugger and PGPROF OpenMP/MPI profiler are available

$ ml PGI
$ ml Java
$ pgdbg &
$ pgprof &

For more information, see the PGI page.


For compatibility reasons, the original (old 4.8.5) versions of GNU compilers as part of the OS are still available. These are accessible in the search path by default.

It is strongly recommended to use the up to date version which comes with the module GCC:

$ ml GCC
$ gcc -v
$ g++ -v
$ gfortran -v

With the module loaded, two environment variables are predefined. One for maximum optimizations on the cluster's architecture, and the other for debugging purposes:

$ echo $OPTFLAGS
-O3 -march=native

-O0 -g

For more information about the possibilities of the compilers, see the man pages.

Simple program to test the compiler

$ cat count.upc

/* hello.upc - a simple UPC example */
#include <upc.h>
#include <stdio.h>

int main() {
  if (MYTHREAD == 0) {
    printf("Welcome to GNU UPC!!!n");
  printf(" - Hello from thread %in", MYTHREAD);
  return 0;

To compile the example, use:

$ gupc -o count.upc.x count.upc

To run the example with 5 threads, use:

$ ./count.upc.x -fupc-threads-5

For more information, see the man pages.


For information on how to use Java (runtime and/or compiler), read the Java page.


For information on how to work with NVIDIA CUDA, read the NVIDIA CUDA page.