Files
vortex/evaluation/perf_2019_11_25/test_bench.sh
2020-04-14 06:35:20 -04:00

24 lines
715 B
Bash

PROJECT=sgemm
echo "" > $PROJECT.result
for number_of_warps in 2 4 8 16 32; do
for number_of_threads in 2 4 8 16 32; do
echo "Warp Count: $number_of_warps Thread Count: $number_of_threads Launched"
echo "#define TOTAL_THREADS $number_of_threads" > ../../runtime/config.h
echo "#define TOTAL_WARPS $number_of_warps" >> ../../runtime/config.h
cd ../opencl/$PROJECT
make clean &>> /dev/null
make &>> /dev/null
cd ../../test_benchmark
echo "Warps: $number_of_warps, Threads: $number_of_threads" >> $PROJECT.result
../../simX/obj_dir/Vcache_simX -E -a rv32i --core ../opencl/$PROJECT/$PROJECT.hex -s -b &>> $PROJECT.result
done
done