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:
Jack Frankland
2020-07-02 10:43:10 +01:00
committed by GitHub
parent 16bb1d83c5
commit 96ea9d6011

View File

@@ -174,9 +174,9 @@ 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);
@@ -193,6 +193,11 @@ int doTest( const char* name )
} }
} }
} }
else
{
vlog("Skipping reduced precision testing for device with "
"version 1.2 or less\n");
}
} }
if( gTestFloat ) if( gTestFloat )