crooks

combinatorial rooks
git clone https://a3nm.net/git/crooks/
Log | Files | Refs

run.sh (160B)


      1 #!/bin/bash
      2 FILE="main.c"
      3 PROG="tmp/rooks$1"
      4 OUT="tmp/out$1"
      5 gcc -std=c99 -O3 -march=native -o $PROG $FILE
      6 $PROG $1 1 9999 > $OUT &
      7 PID="$!"
      8 sleep $2
      9 kill $PID