The HECToR Service is now closed and has been superceded by ARCHER.

Compiling CASTEP 6.1.x on HECToR phase 3

Instructions on how to compile CASTEP 6.1.x for HECToR Phase 3 (Cray XE6, Interlagos)


CASTEP 6.1 should be compiled using the GNU compilers on HECToR (PGI and Cray compiler produce incorrect results).

Set up your environment

Swap to the GNU programming environment:

module swap PrgEnv-cray PrgEnv-gnu

and add the FFTW3 library and hugepages library:

module add fftw
module add craype-hugepages2M

Complete list of modules loaded for central installation compile:

Currently Loaded Modulefiles:
  1) modules/
  2) nodestat/2.2-1.0400.31264.2.5.gem
  3) sdb/1.0-1.0400.32124.7.19.gem
  4) MySQL/5.0.64-1.0000.5053.22.1
  5) lustre-cray_gem_s/1.8.6_2.6.32.45_0.3.2_1.0400.6453.5.1-1.0400.32127.1.90
  6) udreg/2.3.1-1.0400.4264.3.1.gem
  7) ugni/2.3-1.0400.4374.4.88.gem
  8) gni-headers/2.1-1.0400.4351.3.1.gem
  9) dmapp/3.2.1-1.0400.4255.2.159.gem
 10) xpmem/0.1-2.0400.31280.3.1.gem
 11) hss-llm/6.0.0
 12) Base-opts/1.0.2-1.0400.31284.2.2.gem
 13) xtpe-network-gemini
 14) PrgEnv-gnu/4.0.46
 15) xt-mpich2/5.5.4
 16) atp/1.4.3
 17) xt-asyncpe/5.14
 18) pmi/3.0.1-1.0000.9101.2.26.gem
 19) xt-libsci/11.1.01
 20) xt-totalview/8.9.2
 21) totalview-support/1.1.2
 22) gcc/4.7.1
 23) pbs/
 24) packages-phase3
 25) bolt/0.5
 26) budgets/1.0
 27) xtpe-interlagos
 28) fftw/
 29) craype-hugepages2M

Edit the Makefile

Edit Makefile in the main CASTEP directory so that it has the following options:

FFT := fftw3
BUILD := fast
MATHLIBS := scilib

Build the program

Build the program with:

unset CPU
make CASTEP_ARCH=linux_x86_64_gfortran-XT clean
make CASTEP_ARCH=linux_x86_64_gfortran-XT

When you are asked for the paths for the Scientific and FFT libraries you should just leave these lines blank (hit Return) as the paths are set automatically by the Cray compiler wrapper scripts.

Back to the CASTEP page