Skip to content

Commit

Permalink
Scripts for running fuzzer.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Jul 25, 2024
1 parent a828964 commit b66bdbc
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions experiment/sapling/run_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -e

# Currently we give everything equal testing
export FUZZER_TEST_COUNT=10000
export FUZZER_OP_COUNT=1000
export FUZZER_EXTRA_FLAGS="-ll:util 2 -ll:cpu 3"
export FUZZER_LAUNCHER="srun -n 1 --overlap"

function run_fuzzer_config {
config_name="$1"

fuzzer_exe="$PWD/build_${config_name}/src/fuzzer"

FUZZER_EXE="$fuzzer_exe" sbatch --nodes 1 sbatch_fuzzer.sh
}

run_fuzzer_config debug_single
run_fuzzer_config release_single
14 changes: 14 additions & 0 deletions experiment/sapling/sbatch_fuzzer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=40
#SBATCH --partition=all
#SBATCH --time=03:00:00

export REALM_SYNTHETIC_CORE_MAP=
export REALM_BACKTRACE=1

ulimit -S -c 0 # disable core dumps

set -x

./runner.py --fuzzer="$FUZZER_EXE" -j${FUZZER_THREADS:-4} -n${FUZZER_TEST_COUNT:-1000} -o${FUZZER_OP_COUNT:-1000} --extra="$FUZZER_EXTRA_FLAGS" --launcher="$FUZZER_LAUNCHER"

0 comments on commit b66bdbc

Please sign in to comment.