mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 15:39:03 +00:00
Reuse math_brute_force ulp threshold in spir test
Spir test compares floating-point kernel results bit-by-bit with correct results. However, for math_brute_force kernels, specification does not ask for SPIR and OpenCL C path to match bit-to-bit. This patch reuses ulps threshold from math_brute_force folder for math_brute_force kernels in spir test. Signed-off-by: Wenju He <wenju.he@intel.com>
This commit is contained in:
committed by
Alastair Murray
parent
a0035ecae0
commit
a99ef043be
@@ -232,7 +232,7 @@ int main (int argc, const char * argv[])
|
||||
if( gTestFloat )
|
||||
{
|
||||
gTestCount++;
|
||||
if( f->vtbl->TestFunc( f, d ) )
|
||||
if( f->vtbl_ptr->TestFunc( f, d ) )
|
||||
{
|
||||
gFailCount++;
|
||||
error++;
|
||||
@@ -243,12 +243,12 @@ int main (int argc, const char * argv[])
|
||||
|
||||
// while(1)
|
||||
{
|
||||
if( gHasDouble && NULL != f->vtbl->DoubleTestFunc && NULL != f->dfunc.p )
|
||||
if( gHasDouble && NULL != f->vtbl_ptr->DoubleTestFunc && NULL != f->dfunc.p )
|
||||
{
|
||||
gTestCount++;
|
||||
if( gTestFloat )
|
||||
vlog( " " );
|
||||
if( f->vtbl->DoubleTestFunc( f, d ) )
|
||||
if( f->vtbl_ptr->DoubleTestFunc( f, d ) )
|
||||
{
|
||||
gFailCount++;
|
||||
error++;
|
||||
@@ -259,7 +259,7 @@ int main (int argc, const char * argv[])
|
||||
}
|
||||
#if defined( __APPLE__ )
|
||||
{
|
||||
if( gHasBasicDouble && NULL != f->vtbl->DoubleTestFunc && NULL != f->dfunc.p)
|
||||
if( gHasBasicDouble && NULL != f->vtbl_ptr->DoubleTestFunc && NULL != f->dfunc.p)
|
||||
{
|
||||
int isBasicTest = 0;
|
||||
for( j = 0; j < gNumBasicDoubleFuncs; j++ ) {
|
||||
@@ -272,7 +272,7 @@ int main (int argc, const char * argv[])
|
||||
gTestCount++;
|
||||
if( gTestFloat )
|
||||
vlog( " " );
|
||||
if( f->vtbl->DoubleTestFunc( f, d ) )
|
||||
if( f->vtbl_ptr->DoubleTestFunc( f, d ) )
|
||||
{
|
||||
gFailCount++;
|
||||
error++;
|
||||
|
||||
Reference in New Issue
Block a user