-
Need to have access to a
Wire-Cell Toolkit
build and its dependencies. Following variable need to be definned: WIRECELL_LIB EIGEN_INC JSONNET_INC JSONCPP_INC WIRECELL_INC -
Need to have sycl compiler installed https://codeplay.com/solutions/oneapi/for-cuda/#getting-started
-
Need to have oneMKL Open Source Interface Library installed https://github.com/oneapi-src/oneMKL
git clone https://github.com/WireCell/wire-cell-gen-sycl.git
export WC_BUILD_DIR=/your/build/directory
export WC_SYCL_SRC_DIR=${PWD}/wire-cell-gen-sycl
cmake -B ${WC_BUILD_DIR} $SC_SYCL_SRC_DIR/.cmake-sycl
make -C ${WC_BUILD_DIR} -j 10
wire-cell-data
contains needed data files, e.g. geometry files, running full tests.
git clone https://github.com/WireCell/wire-cell-data.git
wire-cell
searches pathes in this env var for configuration and data files.
for bash, run something like this below:
export WIRECELL_PATH=$WIRECELL_FQ_DIR/wirecell-0.14.0/cfg # main cfg
export WIRECELL_PATH=$WIRECELL_DATA_PATH:$WIRECELL_PATH # data
export WIRECELL_PATH=$WC_SYCL_SRC/cfg:$WIRECELL_PATH # gen-sycl
Variable meaning:
$WIRECELL_FQ_DIR
is a variable defined developing in Kyle's container orsetup wirecell
in a Fermilab ups system, current version is0.14.0
, may upgrade in the future.WIRECELL_DATA_PATH
refer to the git repository cloned from the previous stepWC_SYCL_SRC
refer to the path of thewire-cell-gen-sycl
standalone SRC.
export LD_LIBRARY_PATH=${WC_BUILD_DIR}:$LD_LIBRARY_PATH
- input: a root file (refered to as
g4.root
below) containing Geant4 energy depo (sim::SimEnergyDeposits
) - in the example folder:
lar -n 1 -c sim.fcl g4.root