Opens a larger view. Escape closes it.

hardware-counters

cirrus_setup.sh

#!/bin/bash
# Fetch all benchmark sources on Cirrus.
# Run with: bash -l cirrus_setup.sh   (login shell needed for `module`)
set -u
B=/work/project/project/user
mkdir -p "$B"/{src,builds,runs,data,logs,scripts,analysis}
cd "$B/src" || exit 1

echo "=== STREAM ==="
[ -f stream.c ] || curl -sS -m 120 -O https://raw.githubusercontent.com/jeffhammond/STREAM/master/stream.c
echo "  stream.c $(wc -l < stream.c) lines"

echo "=== HPCG ==="
[ -d hpcg ] || git clone -q --depth 1 https://github.com/hpcg-benchmark/hpcg.git
echo "  hpcg $([ -d hpcg ] && echo ok || echo MISSING)"

echo "=== HPL ==="
[ -f hpl-2.3.tar.gz ] || curl -sS -m 300 -O https://www.netlib.org/benchmark/hpl/hpl-2.3.tar.gz
[ -d hpl-2.3 ] || tar xzf hpl-2.3.tar.gz
echo "  hpl-2.3 $([ -d hpl-2.3 ] && echo ok || echo MISSING)"

echo "=== proxy apps ==="
for r in Mantevo/miniFE LLNL/LULESH ECP-copa/CoMD; do
    n=$(basename "$r")
    [ -d "$n" ] || git clone -q --depth 1 "https://github.com/$r.git"
    echo "  $n $([ -d "$n" ] && echo ok || echo MISSING)"
done

echo
echo "=== environment ==="
echo "PE: $(module list 2>&1 | grep -o 'PrgEnv-[a-z]*/[0-9.]*')"
echo "cc: $(cc --version 2>&1 | head -1)"
echo "perftools: $(which pat_build 2>/dev/null || echo 'not loaded')"