1#!/usr/local/bin/bash -e 2NT=$1 3PROG="./KokkosCore_PerformanceTest_Mempool" 4COMMON_ARGS="--kokkos-threads=$NT --fill_stride=1 --alloc_size=10027008 --super_size=65536 --repeat_inner=100 --chunk_span=4 --repeat_outer=10" 5 6postproc() { 7cat log | grep "fill ops per second" | rev | cut -d ' ' -f 2 | rev >> yvals_fill 8cat log | grep "cycle ops per second" | rev | cut -d ' ' -f 2 | rev >> yvals_cycle 9} 10 11rm -f xvals yvals_fill yvals_cycle 12for x in 75 95 13do 14 echo "test fill level $x" 15 echo $x >> xvals 16 $PROG $COMMON_ARGS --fill_level=$x 2>&1 | tee log 17 postproc 18done 19 20rm -f datapoints 21paste xvals yvals_fill yvals_cycle > datapoints.txt 22