Benchmarking stuff
This commit is contained in:
24
benchmarks/test_benchmark/test_bench.sh
Normal file
24
benchmarks/test_benchmark/test_bench.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user