-
Notifications
You must be signed in to change notification settings - Fork 5
Kokkos Hackathon
Haiwang Yu edited this page Jul 16, 2021
·
7 revisions
git clone https://github.com/WireCell/wire-cell-gen-kokkos.git
shifter --image=hepcce2/larwire-kokkos:2.1 wire-cell-gen-kokkos/container/entrypoint.sh
module load cgpu
salloc -A m2845 -C gpu -c 4 -N 1 --gres=gpu:1 --image=docker:hepcce2/larwire-kokkos:2.1 --module=gpu -t 60
srun -n 1 -c 4 --pty shifter wire-cell-gen-kokkos/container/entrypoint.sh
- use
enable_kokkos_cuda
orenable_kokkos_omp
to use kokkos with different backend. - use this script to build:
./build-cmake -j 4
export LD_LIBRARY_PATH=<path-to-wire-cell-gen-kokkos>/build/kokkos/:$LD_LIBRARY_PATH
export WIRECELL_PATH=<path-to-wire-cell-gen-kokkos>/cfg:$WIRECELL_PATH
run the kokkos unit test manually:
In the source folder (one level above build)
./build/kokkos/test/test_fft
Example output:
Space: N6Kokkos6OpenMPE
WIRECELL_KOKKOSARRAY_FFTW
A: init 3.049067 ms.
A dims: 2 3
WIRECELL_KOKKOSARRAY_FFTW
irep: 0 0.524948 ms.
A: nrep: 1 avg: 0.52 ms.
WIRECELL_KOKKOSARRAY_FFTW
B: init 11.097288 ms.
B dims: 4 3
WIRECELL_KOKKOSARRAY_FFTW
irep: 0 2.083998 ms.
B: nrep: 1 avg: 2.08 ms.
- sample input file (referred as
g4.root
below): https://www.phy.bnl.gov/~yuhw/wire-cell-pps/kokkos-hackathon/sample/ - in the example folder:
lar -n 1 -c sim.fcl g4.root