ovni/test/rt/openmp/worksharing-active-th.driver.sh
Raúl Peñacoba Veigas 9826879bcd
Some checks failed
CI / build:rt (push) Failing after 15s
CI / build:debug (push) Successful in 13s
CI / build:asan (push) Failing after 13s
CI / build:nompi (push) Successful in 13s
CI / build:compilers (push) Successful in 13s
CI / build:local (push) Successful in 23s
Add OpenMP support for labels and taskID views
Co-authored-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
2024-12-09 16:41:16 +01:00

30 lines
663 B
Bash

target=$OVNI_TEST_BIN
export NOSV_APPID=1
export OMP_NUM_THREADS=1
$target
ovniemu -l ovni
# Mark API adds 100 to the type
prvtype="100"
row=$(grep '100:123$' ovni/thread.prv | head -1 | cut -d: -f 5)
t0=$(grep '100:123$' ovni/thread.prv | head -1 | cut -d: -f 6)
t1=$(grep '100:123$' ovni/thread.prv | tail -1 | cut -d: -f 6)
PRV_THREAD_STATE=4
TH_ST_PAUSED=2
# 2:0:1:1:1:15113228:100:123
count=$(grep "2:0:1:1:$row:.*:$PRV_THREAD_STATE:$TH_ST_PAUSED" ovni/thread.prv |\
awk -F: '$6 >= '$t0' && $6 <= '$t1' {n++} END {print n}')
if [ "$count" != 100 ]; then
echo "FAIL: expected 100 pause events"
exit 1
else
echo "OK: found 100 pause events"
fi