repro_fig7b 633 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. if [ "$#" == 0 ]; then
  3. echo "The arguments to this script should be the list of the numbers of cores to use."
  4. echo "For example, if you have 16 physical cores, you might run:"
  5. echo
  6. echo "$0 1 2 3 4 6 8 10 12 14 16"
  7. exit 1
  8. fi
  9. # cd into the directory containing this script (from the bash faq 028)
  10. if [[ $BASH_SOURCE = */* ]]; then
  11. cd -- "${BASH_SOURCE%/*}/" || exit
  12. fi
  13. run() {
  14. nthr=$1
  15. echo -n "# "; date
  16. numactl -C0-$((nthr-1)) -m0 ../target/release/arctic 25 11 25 10
  17. echo -n "# "; date
  18. }
  19. for nthreads in $*; do
  20. run $nthreads | tee -a `hostname`.core${nthreads}.out
  21. done