Make the script work with GOMP_stream* and GOMP_batchQ* functions
This commit is contained in:
parent
57820691d2
commit
9e1b9aa1b1
|
@ -18,7 +18,7 @@ action=$1
|
|||
|
||||
function fill_hashtables
|
||||
{
|
||||
grep "^GOMP_stream_connect_view" | cut -d ' ' -f '2-' | while read stream thread view direction task
|
||||
grep "^GOMP_\(stream\|batchQ\)_connect_view" | cut -d ' ' -f '2-' | while read stream thread view direction task
|
||||
do
|
||||
if (( 1 - ${+threads[$thread]} ))
|
||||
then
|
||||
|
@ -123,7 +123,7 @@ function updates_infos
|
|||
{
|
||||
typeset -A streams
|
||||
|
||||
grep "^GOMP_stream_update \[out]" | cut -d ' ' -f '3-' | while read stream burstSize upStart upEnd
|
||||
grep "^GOMP_\(stream\|batchQ\)_update \[out]" | cut -d ' ' -f '3-' | while read stream burstSize upStart upEnd
|
||||
do
|
||||
curVal=$(( (upEnd - upStart) * burstSize ))
|
||||
if (( ${+streams[$stream]} ))
|
||||
|
@ -158,7 +158,7 @@ function stalls_infos
|
|||
{
|
||||
typeset -A streams
|
||||
|
||||
grep "^GOMP_stream_stall \[out]" | cut -d ' ' -f '3-' | while read stream burstSize stStart stEnd
|
||||
grep "^GOMP_\(stream\|batchQ\)_stall \[out]" | cut -d ' ' -f '3-' | while read stream burstSize stStart stEnd
|
||||
do
|
||||
if (( ${+streams[$stream]} ))
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue