ARCHER logo ARCHER banner

The ARCHER Service is now closed and has been superseded by ARCHER2.

  • ARCHER homepage
  • About ARCHER
    • About ARCHER
    • News & Events
    • Calendar
    • Blog Articles
    • Hardware
    • Software
    • Service Policies
    • Service Reports
    • Partners
    • People
    • Media Gallery
  • Get Access
    • Getting Access
    • TA Form and Notes
    • kAU Calculator
    • Cost of Access
  • User Support
    • User Support
    • Helpdesk
    • Frequently Asked Questions
    • ARCHER App
  • Documentation
    • User Guides & Documentation
    • Essential Skills
    • Quick Start Guide
    • ARCHER User Guide
    • ARCHER Best Practice Guide
    • Scientific Software Packages
    • UK Research Data Facility Guide
    • Knights Landing Guide
    • Data Management Guide
    • SAFE User Guide
    • ARCHER Troubleshooting Guide
    • ARCHER White Papers
    • Screencast Videos
  • Service Status
    • Detailed Service Status
    • Maintenance
  • Training
    • Upcoming Courses
    • Online Training
    • Driving Test
    • Course Registration
    • Course Descriptions
    • Virtual Tutorials and Webinars
    • Locations
    • Training personnel
    • Past Course Materials Repository
    • Feedback
  • Community
    • ARCHER Community
    • ARCHER Benchmarks
    • ARCHER KNL Performance Reports
    • Cray CoE for ARCHER
    • Embedded CSE
    • ARCHER Champions
    • ARCHER Scientific Consortia
    • HPC Scientific Advisory Committee
    • ARCHER for Early Career Researchers
  • Industry
    • Information for Industry
  • Outreach
    • Outreach (on EPCC Website)

You are here:

  • ARCHER
  • User Guides & Documentation
  • Essential Skills
  • Quick Start Guide
  • ARCHER User Guide
  • ARCHER Best Practice Guide
  • Scientific Software Packages
  • UK Research Data Facility Guide
  • Knights Landing Guide
  • Data Management Guide
  • SAFE User Guide
  • ARCHER Troubleshooting Guide
  • ARCHER White Papers
  • Screencast Videos

Contact Us

support@archer.ac.uk

Twitter Feed

Tweets by @ARCHER_HPC

ISO 9001 Certified

ISO 27001 Certified

Compiling FDS v6.3.2 on ARCHER (XC30)

This page provides compilation instructions for FDS v6.3.2 on ARCHER (Cray XC30).

Source Code Distributions

The FDS source code can be downloaded from here. Otherwise, the FDS github repository can be cloned directly to a folder within your ARCHER account.

git clone https://github.com/firemodels/fds-smv

Setup

Setup a custom location for TMPDIR.

export TMPDIR=$HOME/fds-smv/FDS_Compilation/tmp
mkdir $HOME/fds-smv/FDS_Compilation/tmp

Compiling FDS (intel)

Some versions of the Intel compilers can generate code that throws the following exception at runtime. "Please verify that both the operating system and the processor support Intel(R) F16C instructions" This can be fixed by running an extra module swap command before the compile.

module swap craype-ivybridge craype-sandybridge

The source code is compiled from within the FDS_Compilation folder.
Edit line 191 of ./FDS_Compilation/makefile to read "mpi_intel_linux_64 : FFLAGS = -m64 -O2 -traceback $(GITINFO)".
Edit line 193 to read "mpi_intel_linux_64 : FCOMPL = ftn".
Then run the following commands.

module swap PrgEnv-cray PrgEnv-intel
make clean
make mpi_intel_linux_64
mv fds_mpi_intel_linux_64 ./mpi_intel_linux_64/

Compiling FDS (gnu)

Again, the source code is compiled from within the FDS_Compilation folder.
Edit line 455 of ./FDS_Compilation/makefile to read "mpi_gnu_linux : FCOMPL = ftn".
Edit line 456 to read "mpi_gnu_linux : FOPENMPFLAGS = -fopenmp".
Then run the following commands.

module swap PrgEnv-cray PrgEnv-gnu
make clean
make mpi_gnu_linux
mv fds_mpi_gnu_linux ./mpi_gnu_linux/

Cleanup

export TMPDIR=/tmp

Running Compiled FDS

To run your newly-compiled FDS code, you need to submit something like the submission script given below.

#!/bin/bash --login

#PBS -N fds
#PBS -l select=2
#PBS -l walltime=2:00:00
#PBS -q standard
#PBS -A accountcode

# Move to directory that script was submitted from
export PBS_O_WORKDIR=$(readlink -f $PBS_O_WORKDIR)
cd $PBS_O_WORKDIR

# This prevents any system libraries from using threading
export OMP_NUM_THREADS=1

export PATH=$HOME/fds-smv/FDS_Compilation/mpi_intel_linux_64:$PATH

aprun -n 37 fds_mpi_intel_linux_64 jet_csmag_dx5cm.fds

Please note, /work is NOT backed up: any valuable data (e.g., source code, simulation results) should be transferred to the RDF or /home.

Back to the main ARCHER FDS page.

Copyright © Design and Content 2013-2019 EPCC. All rights reserved.

EPSRC NERC EPCC