-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbbx_compile_hector.sh
executable file
·32 lines (24 loc) · 1.09 KB
/
bbx_compile_hector.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# These are compilation commands that work on Hector.
# Hector is the UK National HPC service. More information
# is available from http://www.hector.ac.uk.
# This step is needed only the first time after the code has been downloaded.
# It creates the configure script suitable for your environment.
# For subsequent recompilations this may be omitted
autoreconf -fi
# Load the PGI compiler module: this is what makes Hector particularly special
module load pgi
# Tell the configure command what compiler we need to use.
# This is also different from typical local compile procedure.
export CC=cc
# Need to explicitly tell the Cray system what X libraries to use
# This is also different from typical local compile procedure.
export LIBS="-lm -lX11 -lxcb -lxcb-xlib -ldl -lXau"
# Run configure - note that it will install in $HOME/bin
# Note that on HECToR to run a program on the back-end system
# you need to be able to access the executable from your /work
# file system.
./configure --prefix=$HOME
# Now make the code
make
# Install the code to the directories specified by the prefix above.
make install