-
Notifications
You must be signed in to change notification settings - Fork 4
Cray XK7 (Titan) Build Example
Kevin Huck edited this page Oct 6, 2017
·
10 revisions
Building on Titan is somewhat straightforward, as the software pre-requisites are already installed on the system. To set up your environment, do the following:
- Load modules
module swap PrgEnv-pgi PrgEnv-gnu
module load cmake
module load flexpath/1.12
- Set environment variables
# path to Flexpath/EVPath
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${FLEXPATH_DIR}/lib/pkgconfig
# For tracking the environment that SOS is built in:
export SOS_HOST_KNOWN_AS="\"ORNL (Titan)\""
export SOS_HOST_NODE_NAME="\"$(uname -n)\""
export SOS_HOST_DETAILED="\"$(uname -o) $(uname -r) $(uname -m)\""
export CC=cc
export CXX=CC
- Get the SOS source code:
git clone [email protected]:cdwdirect/sos_flow.git
git checkout master
mkdir build-titan
cd build-titan
- Configure with cmake:
# set an installation prefix location, or just "." for testing
sosdir=$HOME/path/to/sos/installation/prefix
cmake \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DSOS_EVPATH_EXTRA_LIBS="-lffs -ldill -lcercs_env -latl -levpath -libverbs" \
-DCMAKE_INSTALL_PREFIX=${sosdir} \
-DCMAKE_C_COMPILER=cc \
-DCMAKE_CXX_COMPILER=CC \
-DSOSD_CLOUD_SYNC_WITH_EVPATH=TRUE \
-DSOSD_CLOUD_SYNC_WITH_MPI=FALSE \
-DMPI_C_NO_INTERROGATE=TRUE \
-DMPI_Fortran_COMPILER=ftn \
-DMPI_C_COMPILER=cc \
-DMPI_CXX_COMPILER=CC ..
- Compile!
make -j4
make install