Bridges User Guide

 

Programming Environment

Bridges provides a rich programming environment for the development of applications.

C, C++ and Fortran 

Intel, Gnu and PGI compilers for C, C++ and Fortan are available on Bridges.  The compilers are:

  C C++ Fortran
Intel icc icpc ifort
Gnu gcc g++ gfortran
PGI pgcc pgc++ pgfortran

The Intel and Gnu compilers are loaded for you automatically.

To run the PGI compilers you must first issue the command

      module load pgi

There are man pages for each of the compilers.

 

OpenMP programming

 

To compile OpenMP programs you must add an option to your compile command:

Intel -qopenmp
for example: icc -qopenmp myprog.c
Gnu -fopenmp
for example: gcc -fopenmp myprog.c
PGI -mp
for example: pgcc -mp myprog.c

 

MPI programming

 

Three types of MPI are supported on Bridges: MVAPICH2, OpenMPI and Intel MPI.

There are two steps to compile an MPI program:

  1. Load the correct module for the compiler and MPI type you want to use, unless you are using  Intel MPI.  The Intel MPI module is loaded for you on login.
  2. Issue the appropriate MPI wrapper command to compile your program

The three MPI types  may perform differently on different problems or in different programming environments.   If you are having trouble with one type of MPI, please try using another type.  Contact This email address is being protected from spambots. You need JavaScript enabled to view it. for more help.

 

  • Intel compilers

  • Gnu compilers

  • PGI compilers

To use the Intel compilers with Load this module Compile with this command
C C++ Fortran
Intel MPI  none, this is loaded by default mpiicc mpiicpc mpiifort
OpenMPI mpi/intel_openmpi mpicc mpicxx mpifort
MVAPICH2 mpi/intel_mvapich mpicc code.c -lifcore mpicxx code.cpp -lifcore mpifort code.f90 -lifcore
To use the Gnu compilers with Load this module Compile with this command
C C++ Fortran
Intel MPI none, this is loaded by default mpicc mpicxx mpifort
OpenMPI mpi/gcc_openmpi
MVAPICH2 mpi/gcc_mvapich
To use the PGI compilers with Load this module Compile with this command
C C++ Fortran
OpenMPI mpi/pgi_openmpi mpicc mpicxx mpifort
MVAPICH2 mpi/pgi_mvapich

 

  

Other languages

Other languages, including Java, Python, R,  and MATLAB, are available.  See the software page for information.

 

Debugging and performance analysis

 

DDT

DDT is a debugging tool for C, C++ and Fortran 90 threaded and parallel codes.  It is client-server software.  Install the client on your local machine and then you can access the GUI on Bridges to debug your code.

See the DDT page for more information.

 

VTune

VTune is a performance analysis tool from Intel for serial, multithreaded and MPI applications.  Install the client on your local machine and then you can access the GUI on Bridges.  See the VTune page for more information.

 

New on Bridges

GPUs to be allocated separately
Read more

Upgraded scratch file system installed
Read more

Omni-Path User Group

The Intel Omni-Path Architecture User Group is open to all interested users of Intel's Omni-Path technology.

More information on OPUG