1234567891011121314151617181920212223242526272829303132333435363738 |
- #!/bin/bash
- # cd into the directory containing this script (from the bash faq 028)
- if [[ $BASH_SOURCE = */* ]]; then
- cd -- "${BASH_SOURCE%/*}/" || exit
- fi
- ./start-docker
- if [ "$1" == "" ]; then
- niters=1
- else
- niters="$1"
- fi
- if [ "$2" == "" ]; then
- num_send_rounds=1
- else
- num_send_rounds="$2"
- fi
- # Use up to 16 cores
- ncores=`nproc`
- if [ $ncores -ge 16 ]; then
- ncores=16
- fi
- for iter in $(seq 1 $niters); do
- for expon in 15 16 17 18 19 20; do
- sends=$((1<<expon))
- docker exec -it ${SPARTA_DOCKER_PREFIX}sparta \
- numactl -C 0-$((ncores-1)) ftxsgx-runner \
- sparta/target/x86_64-fortanix-unknown-sgx/release/sparta.sgxs \
- -- $sends $sends $ncores $sends 5 -r $num_send_rounds -w 0
- done
- done
- ./stop-docker
|