Add heat tampi bench test

This commit is contained in:
Rodrigo Arias 2025-04-14 18:19:09 +02:00
parent 9ba303f4ed
commit 9dec20d461
2 changed files with 26 additions and 0 deletions

View File

@ -29,4 +29,8 @@ function(openmp_bench_test)
ENVIRONMENT "NOSV_CONFIG_OVERRIDE=instrumentation.version=ovni,ovni.level=3")
endfunction()
find_program(B6_HEAT_OMPV_PATH b6_heat_ompv REQUIRED)
find_program(B6_HEAT_OMPV_PATH b6_heat_itampi_nodes_tasks REQUIRED)
openmp_bench_test(dummy.c NAME b6_heat_ompv DRIVER b6_heat_ompv.sh)
openmp_bench_test(dummy.c NAME b6_heat_itampi_nodes_tasks DRIVER b6_heat_itampi_nodes_tasks.sh)

View File

@ -0,0 +1,22 @@
export NOSV_APPID=1
export NOSV_CONFIG_OVERRIDE=instrumentation.version=ovni,ovni.level=2
#export OMP_NUM_THREADS=1
export OMP_OVNI=1
b6_heat_itampi_nodes_tasks -b 128 -t 10
ovnisort ovni
ovnitop ovni
ovniemu -b ovni
# Make sure the trace is not too big (limit at 128 MiB)
maxsize=$((128 * 1024 * 1024))
for f in ovni/{cpu,thread}.prv; do
size=$(stat -c %s $f)
if [ $size -lt $maxsize ]; then
echo "$f: size ok ($size < $maxsize)"
else
echo "$f: too big ($size >= $maxsize)"
fi
done