https://github.com/linbox-team/fflas-ffpack
Tip revision: e2c9bd2d080c37a33eed94ab6b741c80e35cb919 authored by Cyril Bouvier on 24 March 2021, 10:00:30 UTC
Add -mcpu=native instead of -march=native if the latter is not known
Add -mcpu=native instead of -march=native if the latter is not known
Tip revision: e2c9bd2
tune_fgemm.sh
#!/bin/bash
echo =================================================
echo ========= FFLAS-FFPACK fgemm Autotuning =========
echo =================================================
echo
echo "== Tuning fgemm over Modular<double> =="
(./winograd-modular-double > fgemm-thresholds.h) 2>&1 | tee fgemm-autotune.log
val=${PIPESTATUS[0]}; if test ${val} -ne 0 ; then exit ${val}; fi
echo
echo "== Tuning fgemm over Modular<float> =="
(./winograd-modular-float >> fgemm-thresholds.h) 2>&1 | tee -a fgemm-autotune.log
val=${PIPESTATUS[0]}; if test ${val} -ne 0 ; then exit ${val}; fi
echo
echo "== Tuning fgemm over ModularBalanced<double> =="
(./winograd-modularbalanced-double >> fgemm-thresholds.h) 2>&1 | tee -a fgemm-autotune.log
val=${PIPESTATUS[0]}; if test ${val} -ne 0 ; then exit ${val}; fi
echo
echo "== Tuning fgemm over ModularBalanced<float> =="
(./winograd-modularbalanced-float >> fgemm-thresholds.h) 2>&1 | tee -a fgemm-autotune.log
val=${PIPESTATUS[0]}; if test ${val} -ne 0 ; then exit ${val}; fi