mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 08:19:02 +00:00
Skip Reduced Precision Testing (#819)
* OpenCL versions before 2.0 do not have precision requirements for reduced precision math. * Skip reduced precision testing for devices with versions < 2.0.
This commit is contained in:
@@ -174,25 +174,30 @@ int doTest( const char* name )
|
|||||||
InitILogbConstants();
|
InitILogbConstants();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( gTestFastRelaxed )
|
if (gTestFastRelaxed && func_data->relaxed)
|
||||||
{
|
{
|
||||||
if( func_data->relaxed )
|
if (get_device_cl_version(gDevice) > Version(1, 2))
|
||||||
{
|
{
|
||||||
gTestCount++;
|
gTestCount++;
|
||||||
vlog( "%3d: ", gTestCount );
|
vlog("%3d: ", gTestCount);
|
||||||
// Test with relaxed requirements here.
|
// Test with relaxed requirements here.
|
||||||
if (func_data->vtbl_ptr->TestFunc(func_data, gMTdata,
|
if (func_data->vtbl_ptr->TestFunc(func_data, gMTdata,
|
||||||
true /* relaxed mode */))
|
true /* relaxed mode */))
|
||||||
{
|
{
|
||||||
gFailCount++;
|
gFailCount++;
|
||||||
error++;
|
error++;
|
||||||
if( gStopOnError )
|
if (gStopOnError)
|
||||||
{
|
{
|
||||||
gSkipRestOfTests = true;
|
gSkipRestOfTests = true;
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
vlog("Skipping reduced precision testing for device with "
|
||||||
|
"version 1.2 or less\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( gTestFloat )
|
if( gTestFloat )
|
||||||
|
|||||||
Reference in New Issue
Block a user