diff --git a/test/bench/openmp/CMakeLists.txt b/test/bench/openmp/CMakeLists.txt index 4bf9b0f..10f32e1 100644 --- a/test/bench/openmp/CMakeLists.txt +++ b/test/bench/openmp/CMakeLists.txt @@ -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) diff --git a/test/bench/openmp/b6_heat_itampi_nodes_tasks.sh b/test/bench/openmp/b6_heat_itampi_nodes_tasks.sh new file mode 100644 index 0000000..3d4632b --- /dev/null +++ b/test/bench/openmp/b6_heat_itampi_nodes_tasks.sh @@ -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