From 9cfa56c513f60ae74f1a2466564de984f5228924 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 16 Jan 2015 16:00:26 +0100 Subject: [PATCH] opt-pilot: build-script and tar-ball added --- scripts/opt-pilot.build | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 scripts/opt-pilot.build diff --git a/scripts/opt-pilot.build b/scripts/opt-pilot.build new file mode 100755 index 0000000..b1d73f8 --- /dev/null +++ b/scripts/opt-pilot.build @@ -0,0 +1,20 @@ +#!/bin/bash + +source "$(dirname $0)/../lib/libem.bash" + +module use unstable + +# add -fopenmp to CC and CXX, if you want to compile with OpenMP +function em.configure() { + cmake \ + -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ + -DCMAKE_BUILD_TYPE=RELEASE \ + "${MODULE_SRCDIR}" +} + +em.add_to_family 'MPI' +em.set_runtime_dependencies "${COMPILER}" "${MPI}" +em.set_build_dependencies 'cmake' "${COMPILER}" "${MPI}" 'boost' 'hdf5' 'H5hut' 'trilinos' 'ippl' 'gsl' 'boost' 'OPAL' +em.set_supported_compilers 'gcc/4.7' 'gcc/4.8' +em.make_all +