DP-Code on Ubuntu

Last modified by Xwiki VePa on 2024/02/07 07:36

This guide will help the user understand how to compile, install, and use DP Code on their own Ubuntu workstation. If you are using another platform, please refer to the appropriate documentation or contact Benjamin Alldritt for assistance.

Step-by-step guide

Requirements

To compile DP-Code, you will need the following software:

  • Fortran compiler (gfortran)
  • C compiler (GCC)
  • MPI
  • FFTW
  • LAPACK
  • BLAS

Instructions

Ubuntu 12.04 (64 bit)

  1. Install the required packages:

    sudo apt-get install gfortran libfftw3-dev liblapack-dev libblas-dev libmpich2-dev
  2. Download the latest version of the DP Code source and unpack into a new directory.

    mkdir ${HOME}/software
    mkdir ${HOME}/software/dp-code
    cd ${HOME}/software/dp-code
    wget http://etsf.grenoble.cnrs.fr/dp/license/download/dp-5.3.tgz
    tar -xvzf dp-5.3.tar.gz
    cd dp-5.3
  3. Configure DP Code for the local machine.

    ./configure --prefix=${HOME}/software/dp-code --with-gfortran-endianness=big --enable-mpi --with-fftw3=/usr
  4. Compile DP Code.

    make
    make install
  5. Run DP Code after the tests pass.

    cd ${HOME}/software/dp-code
    ./dp

Ubuntu 14.04 (64 bit)

  1. Install the required packages:

    sudo apt-get install gfortran libfftw3-dev liblapack-dev libblas-dev libmpich2-dev
  2. Download the latest version of the DP Code source and unpack into a new directory.

    mkdir ${HOME}/software
    mkdir ${HOME}/software/dp-code
    cd ${HOME}/software/dp-code
    wget http://etsf.grenoble.cnrs.fr/dp/license/download/dp-5.3.tgz
    tar -xvzf dp-5.3.tar.gz
    cd dp-5.3
  3. Configure DP Code for the local machine.

    ./configure --prefix=${HOME}/software/dp-code --with-gfortran-endianness=big --enable-mpi --with-fftw3=/usr F90FLAGS=-cpp
  4. Compile DP Code.

    make
    make install
  5. Run DP Code after the tests pass.

    cd ${HOME}/software/dp-code
    ./dp

Tips & Warnings

You may also want to use visual panels to communicate related information, tips or things users need to be aware of.

Related articles

Unknown macro: contentbylabel. Click on this message for details.