mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
vectors: improve error messages (#2609)
Clarify that the first number is the work-item. Print hexadecimal numbers with a `0x` prefix. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
6f38c799c1
commit
591a736918
@@ -341,9 +341,9 @@ int checkCorrectnessAlign(bufferStruct *pBufferStruct, clState *pClState,
|
|||||||
{
|
{
|
||||||
if ((targetArr[i]) % minAlign != (cl_uint)0)
|
if ((targetArr[i]) % minAlign != (cl_uint)0)
|
||||||
{
|
{
|
||||||
vlog_error(
|
vlog_error("Error in work-item %zu (of %zu). Expected a multiple "
|
||||||
"Error %zu (of %zu). Expected a multiple of %zx, got %x\n", i,
|
"of 0x%zx, got 0x%x\n",
|
||||||
pClState->m_numThreads, minAlign, targetArr[i]);
|
i, pClState->m_numThreads, minAlign, targetArr[i]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -371,8 +371,9 @@ int checkCorrectnessStep(bufferStruct *pBufferStruct, clState *pClState,
|
|||||||
{
|
{
|
||||||
if (targetArr[i] != targetSize)
|
if (targetArr[i] != targetSize)
|
||||||
{
|
{
|
||||||
vlog_error("Error %zu (of %zu). Expected %d, got %d\n", i,
|
vlog_error(
|
||||||
pClState->m_numThreads, targetSize, targetArr[i]);
|
"Error in work-item %zu (of %zu). Expected %d, got %d\n", i,
|
||||||
|
pClState->m_numThreads, targetSize, targetArr[i]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -390,10 +391,11 @@ int checkPackedCorrectness(bufferStruct *pBufferStruct, clState *pClState,
|
|||||||
{
|
{
|
||||||
if ((targetArr[i] - beforeSize) % totSize != (cl_uint)0)
|
if ((targetArr[i] - beforeSize) % totSize != (cl_uint)0)
|
||||||
{
|
{
|
||||||
vlog_error(
|
vlog_error("Error in work-item %zu (of %zu). Expected %zu more "
|
||||||
"Error %zu (of %zu). Expected %zu more than a multiple of "
|
"than a multiple of "
|
||||||
"%zu, got %d \n",
|
"%zu, got %d \n",
|
||||||
i, pClState->m_numThreads, beforeSize, totSize, targetArr[i]);
|
i, pClState->m_numThreads, beforeSize, totSize,
|
||||||
|
targetArr[i]);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user