Library to translate SCR calls to VELOC calls. This installs the scr.h header and libscr files.
Requires path to veloc install.
#!/bin/bash
# variables to set if need to build with different compiler
export CC=icc
export CXX=icpc
export F77=ifort
export F90=ifort
VELOC_PATH=../veloc.git/install
cmake -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCMAKE_BUILD_TYPE=Debug -DWITH_VELOC_PREFIX=$VELOC_PATH -DWITH_KVTREE_PREFIX=$VELOC_PATH
make VERBOSE=1
make install
Copy the examples from the install location:
#!/bin/bash
cp -pr <scr2veloc>/install/share/scr/examples .
cd examples
make
Create a veloc config file, e.g.,:
>>: cat veloc.config
scratch = /tmp/scratch
persistent = /tmp/persistent
max_versions = 1
mode = sync
axl_type = AXL_XFER_SYNC
To run, set SCR2VELOC_CONFIG to point to the veloc config file, and set SCR2VELOC_NAMES to point to where the kvtree file should be written/read that records the mapping of SCR output name to VELOC checkpoint id:
#!/bin/bash
export SCR2VELOC_CONFIG="veloc.config"
export SCR2VELOC_NAMES="scrnames.kvtree"
srun -n2 -N1 ./test_api
Copyright (c) 2018, UChicago Argonne LLC, operator of Argonne National Laboratory
Copyright (c) 2018, Lawrence Livermore National Security, LLC.
Produced at the Lawrence Livermore National Laboratory.
For release details and restrictions, please read the LICENSE and NOTICE files.
LLNL-CODE-751725
OCEC-18-060