Vortex 2.0 changes:
+ Microarchitecture optimizations + 64-bit support + Xilinx FPGA support + LLVM-16 support + Refactoring and quality control fixes
This commit is contained in:
41
perf/cache/run.sh
vendored
Executable file
41
perf/cache/run.sh
vendored
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
# exit when any command fails
|
||||
set -e
|
||||
|
||||
# ensure build
|
||||
make -s
|
||||
|
||||
sgemm()
|
||||
{
|
||||
echo "begin cache tests"
|
||||
|
||||
CONFIGS="-DICACHE_NUM_WAYS=2" ./ci/blackbox.sh --driver=rtlsim --app=sgemm --args="-n64" --perf=1 | grep 'PERF' > ./perf/cache/cache_perf.log
|
||||
echo -e "\n**************************************\n" >> ./perf/cache/cache_perf.log
|
||||
CONFIGS="-DDCACHE_NUM_WAYS=2" ./ci/blackbox.sh --driver=rtlsim --app=sgemm --args="-n64" --perf=1 | grep 'PERF' >> ./perf/cache/cache_perf.log
|
||||
echo -e "\n**************************************\n" >> ./perf/cache/cache_perf.log
|
||||
CONFIGS="-DICACHE_NUM_WAYS=4" ./ci/blackbox.sh --driver=rtlsim --app=sgemm --args="-n64" --perf=1 | grep 'PERF' >> ./perf/cache/cache_perf.log
|
||||
echo -e "\n**************************************\n" >> ./perf/cache/cache_perf.log
|
||||
CONFIGS="-DDCACHE_NUM_WAYS=4" ./ci/blackbox.sh --driver=rtlsim --app=sgemm --args="-n64" --perf=1 | grep 'PERF' >> ./perf/cache/cache_perf.log
|
||||
echo -e "\n**************************************\n" >> ./perf/cache/cache_perf.log
|
||||
CONFIGS="-DICACHE_NUM_WAYS=8" ./ci/blackbox.sh --driver=rtlsim --app=sgemm --args="-n64" --perf=1 | grep 'PERF' >> ./perf/cache/cache_perf.log
|
||||
echo -e "\n**************************************\n" >> ./perf/cache/cache_perf.log
|
||||
CONFIGS="-DDCACHE_NUM_WAYS=8" ./ci/blackbox.sh --driver=rtlsim --app=sgemm --args="-n64" --perf=1 | grep 'PERF' >> ./perf/cache/cache_perf.log
|
||||
|
||||
echo "cache tests done!"
|
||||
}
|
||||
|
||||
usage()
|
||||
{
|
||||
echo "usage: [-s] [-h|--help]"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
-s ) sgemm
|
||||
;;
|
||||
-h | --help ) usage
|
||||
;;
|
||||
* ) sgemm
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
Reference in New Issue
Block a user