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.