Skip main navigation

Software requirements and set up

Software requirements
© PRACE

You will need some software to do the exercises for this course. A Fortran compiler is essential, the other packages listed are specific to certain topics. All the software is open source.

You will find installation instructions for Windows, Linux, and MacOS.

Windows

Since this course makes use of the bash command line interface, here is how to get one on your windows opperating system. If you have already a WSL installed on your system, please check that it uses Ubuntu 20.04 or later. You can verify this by executing lsb_release -a on the command line.

 

Installing Windows Subsystem Linux

 

Follow the manual installation steps on the Microsoft documentation page.

 

Installing the required software within WSL

 

Now that WSL is installed, create a working directory on the subsystem.
In your WSL home directory, execute the following command:

 

mkdir workdir && cd workdir

 

Next, clone the Fortran-MOOC git repository inside this working directory:

 

git clone https://github.com/gjbex/Fortran-MOOC/

 

Navigate to Fortran-MOOC/software/containers:

 

cd Fortran-MOOC/software/containers && ls

 

Here you can find a README file, a makefile and the bashscripts development_node_install.sh and development_node_20_04_install.sh.
These bash scripts will install the software required for this course. Use development_node_20_04_install.sh when you are using Ubuntu 20.04.

 

To execute the script do:
sudo bash development_node_install.sh

 

Once this script completes, all necessary software should be installed correctly within your WSL.

 

Linux

 

Clone the Fortran-MOOC repository into your desired location.

 

git clone https://github.com/gjbex/Fortran-MOOC/

 

Navigate to Fortran-MOOC/software/containers.
Here you can find a README file, a makefile and the bashscripts development_node_install.sh and development_node_20_04_install.sh.
These bash scripts will install the software required for this course. Use development_node_20_04_install.sh when you are using Ubuntu 20.04.

 

sudo bash development_node_install.sh

 

Note that this script makes use of apt to install the software. If you use a different package manager you can use those to install the software manually (e.g., yum or pacman).

 

MacOS

 

MacOS users can use the Homebrew package manager to install the required software, e.g., installing CMake:

 

brew install cmake

Software stack

Building software

  1. GCC Fortran compiler
  2. CMake
  3. make

Documentation generation

  1. doxygen

Debugging

  1. gdb
  2. valgrind
  3. pFUnit

Profiling

  1. gprof

Scientific libraries

  1. OpenBLAS
  2. Lapack
  3. FFTW3
  4. HDF5

C interoperability

  1. GCC C compiler
  2. GSL

Python integration

  1. Python 3.6+
  2. numpy
  3. jupyter notebook

Tools

  1. git
  2. nano/emacs/vim
  3. gnuplot

Containers

You will also find a Dockerfile and a Singularity specification file in the GitHub reporistory.

© PRACE
This article is from the free online

Fortran for Scientific Computing

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now