The following script shows the basic usage of HPCW to run ecTrans tests. This script generates a Makefile that will build all dependencies of ecTrans, before building ecTrans itself. The ctest
command runs the ecTrans tests.
# edit path according to your setup
export HPCW_SOURCE_DIR=/path/to/hpcw
export TEST_BUILD_DIR=/path/to/build/dir
# select a toolchain that's working on your system
export TOOLCHAIN=bull-intel+mpi+mkl
source $HPCW_SOURCE_DIR/toolchains/${TOOLCHAIN}.env.sh
(
mkdir -p ${TEST_BUILD_DIR}
cd ${TEST_BUILD_DIR}
cmake \
-DENABLE_ectrans=ON \
-DUSE_SYSTEM_ectrans=OFF \
${HPCW_SOURCE_DIR}
make
ctest -R ectrans -VV
)
Each step is described in the detailed usage documentation. All the commands between parentheses can be replaced by a call to the build_wrapper script. The following command is equivalent to the script above:
# Assuming current directory is HPCW root folder
# Will select a default build dir
./toolchains/build-wrapper.sh $(pwd) bull/bull-intel+mpi+mkl.env.sh \
--with=ectrans --test