Files
leleka/tools/microbench/run_laptop.sh
T

12 lines
575 B
Bash

#!/usr/bin/env bash
# Laptop (RTX 3080, WSL2) runner: takes ~/LAPTOP_GPU.lock (mkdir lock, the convention of the other laptop scripts), runs the suite.
# run_laptop.sh [OUTFILE] [suite...]
set -uo pipefail
here="$(cd "$(dirname "$0")" && pwd)"
out="${1:-$HOME/roofline-laptop.log}"; shift 1 2>/dev/null || true
bin="${BIN:-$HOME/roofline-bin}"
file="${GGUF:-$(ls $HOME/laptop/model/*.gguf 2>/dev/null | head -1)}"
until mkdir ~/LAPTOP_GPU.lock 2>/dev/null; do sleep 20; done
trap 'rmdir ~/LAPTOP_GPU.lock' EXIT
bash "$here/run_all.sh" "$bin" "$file" "$@" 2>&1 | tee "$out"