Skip to content

Commit 3abd7ef

Browse files
authored
include a NULL global work size in timing tags (#427)
Previously, if the global work size was NULL, no information about the global work size was included in a timing tag, unlike a NULL global work offset or local work size. After this change, the global work size is included in the timing tags also.
1 parent 57cbb40 commit 3abd7ef

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

intercept/src/intercept.cpp

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5893,21 +5893,28 @@ void CLIntercept::getTimingTagsKernel(
58935893
deviceTag += ss.str();
58945894
}
58955895

5896-
if( config().DevicePerformanceTimeGWSTracking && gws )
5896+
if( config().DevicePerformanceTimeGWSTracking )
58975897
{
58985898
std::ostringstream ss;
58995899
ss << " GWS[ ";
5900-
if( workDim >= 1 )
5901-
{
5902-
ss << gws[0];
5903-
}
5904-
if( workDim >= 2 )
5900+
if( gws )
59055901
{
5906-
ss << " x " << gws[1];
5902+
if( workDim >= 1 )
5903+
{
5904+
ss << gws[0];
5905+
}
5906+
if( workDim >= 2 )
5907+
{
5908+
ss << " x " << gws[1];
5909+
}
5910+
if( workDim >= 3 )
5911+
{
5912+
ss << " x " << gws[2];
5913+
}
59075914
}
5908-
if( workDim >= 3 )
5915+
else
59095916
{
5910-
ss << " x " << gws[2];
5917+
ss << "NULL";
59115918
}
59125919
ss << " ]";
59135920
deviceTag += ss.str();

0 commit comments

Comments
 (0)