cl20: Khronos Bug 16122: Convert half to test harness

Conflicts:
	test_conformance/half/CMakeLists.txt
	test_conformance/half/Test_vStoreHalf.c
	test_conformance/half/cl_utils.c
	test_conformance/half/cl_utils.h

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
Kevin Petit
2019-02-20 18:32:39 +00:00
committed by Kévin Petit
parent 901bc34567
commit aadfe3c5a7
9 changed files with 121 additions and 214 deletions

View File

@@ -16,10 +16,9 @@
#include <string.h>
#include "cl_utils.h"
#include "tests.h"
#include "../../test_common/harness/testHarness.h"
int Test_roundTrip( void )
int Test_roundTrip( cl_device_id deviceID, cl_context context, cl_command_queue queue, int num_elements )
{
int vectorSize, error;
uint64_t i, j;
@@ -236,6 +235,7 @@ int Test_roundTrip( void )
vlog_error( "%lld) (of %lld) Failure at 0x%4.4x: 0x%4.4x vector_size = %d \n", j, (uint64_t)count, u2[j], u1[j], (g_arrVecSizes[vectorSize]) );
gFailCount++;
error = -1;
goto exit;
}
}
@@ -285,6 +285,7 @@ int Test_roundTrip( void )
vlog_error( "%lld) Failure at 0x%4.4x: 0x%4.4x vector_size = %d (double precsion)\n", j, u2[j], u1[j], (g_arrVecSizes[vectorSize]) );
gFailCount++;
error = -1;
goto exit;
}
}
@@ -391,7 +392,6 @@ exit:
}
}
gTestCount++;
return error;
}