xref: /aosp_15_r20/external/eigen/scripts/eigen_monitor_perf.sh (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1#!/bin/bash
2
3# This is a script example to automatically update and upload performance unit tests.
4# The following five variables must be adjusted to match your settings.
5
6USER='ggael'
7UPLOAD_DIR=perf_monitoring/ggaelmacbook26
8EIGEN_SOURCE_PATH=$HOME/Eigen/eigen
9export PREFIX="haswell-fma"
10export CXX_FLAGS="-mfma -w"
11
12####
13
14BENCH_PATH=$EIGEN_SOURCE_PATH/bench/perf_monitoring/$PREFIX
15PREVPATH=$(pwd)
16cd $EIGEN_SOURCE_PATH/bench/perf_monitoring && ./runall.sh "Haswell 2.6GHz, FMA, Apple's clang" "$@"
17cd $PREVPATH || exit 1
18
19ALLFILES="$BENCH_PATH/*.png $BENCH_PATH/*.html $BENCH_PATH/index.html $BENCH_PATH/s1.js $BENCH_PATH/s2.js"
20
21# (the '/' at the end of path is very important, see rsync documentation)
22rsync -az --no-p --delete $ALLFILES $USER@ssh.tuxfamily.org:eigen/eigen.tuxfamily.org-web/htdocs/$UPLOAD_DIR/ || { echo "upload failed"; exit 1; }
23
24# fix the perm
25ssh $USER@ssh.tuxfamily.org "chmod -R g+w /home/eigen/eigen.tuxfamily.org-web/htdocs/perf_monitoring" || { echo "perm failed"; exit 1; }
26