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
|
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
|
do
|
||||||
if (( 1 - ${+threads[$thread]} ))
|
if (( 1 - ${+threads[$thread]} ))
|
||||||
then
|
then
|
||||||
|
@ -123,7 +123,7 @@ function updates_infos
|
||||||
{
|
{
|
||||||
typeset -A streams
|
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
|
do
|
||||||
curVal=$(( (upEnd - upStart) * burstSize ))
|
curVal=$(( (upEnd - upStart) * burstSize ))
|
||||||
if (( ${+streams[$stream]} ))
|
if (( ${+streams[$stream]} ))
|
||||||
|
@ -158,7 +158,7 @@ function stalls_infos
|
||||||
{
|
{
|
||||||
typeset -A streams
|
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
|
do
|
||||||
if (( ${+streams[$stream]} ))
|
if (( ${+streams[$stream]} ))
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in New Issue