Compiling Software

This guide will be using the Intel compilers to compile a small Fortran 90 program. We will be using a simple 1D Wave program.

Step 1 – Download and transfer the program to the Cluster

The program is available here. Download it and transfer it to the cluster using WinSCP or any other file transfer program.

Step 2 – Load the Intel compilers module

Enter the following command:

module load intel

Step 2 – Compile the program

Enter the following command:

ifort -o wave_1d wave_1d.f90

Step 3 – Run the program

Normally programs that require significant memory or cpu time must not be run on the login node. However, this is permitted for short, small runs.

Enter the following command:

./wave_1d

This runs the program and produces two output files.