mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
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:
@@ -24,6 +24,8 @@
|
||||
#include "string.h"
|
||||
#include "../../test_common/harness/kernelHelpers.h"
|
||||
|
||||
#include "../../test_common/harness/testHarness.h"
|
||||
|
||||
#define HALF_MIN 1.0p-14
|
||||
|
||||
|
||||
@@ -58,13 +60,11 @@ uint32_t gDeviceFrequency = 0;
|
||||
uint32_t gComputeDevices = 0;
|
||||
size_t gMaxThreadGroupSize = 0;
|
||||
size_t gWorkGroupSize = 0;
|
||||
int gTestCount = 0;
|
||||
int gFailCount = 0;
|
||||
bool gWimpyMode = false;
|
||||
int gWimpyReductionFactor = 512;
|
||||
int gTestDouble = 0;
|
||||
uint32_t gDeviceIndex = 0;
|
||||
int gIsEmbedded = 0;
|
||||
size_t gBufferSize = 0;
|
||||
|
||||
#if defined( __APPLE__ )
|
||||
@@ -75,11 +75,6 @@ int gReportTimes = 0;
|
||||
|
||||
#pragma mark -
|
||||
|
||||
static void CL_CALLBACK notify_callback(const char *errinfo, const void *private_info, size_t cb, void *user_data)
|
||||
{
|
||||
vlog( "%s\n", errinfo );
|
||||
}
|
||||
|
||||
int InitCL( void )
|
||||
{
|
||||
cl_platform_id platform = NULL;
|
||||
@@ -439,25 +434,6 @@ double SubtractTime( uint64_t endTime, uint64_t startTime )
|
||||
|
||||
#endif
|
||||
|
||||
#if !defined( __APPLE__ )
|
||||
void memset_pattern4(void *dest, const void *src_pattern, size_t bytes )
|
||||
{
|
||||
uint32_t pat = ((uint32_t*) src_pattern)[0];
|
||||
size_t count = bytes / 4;
|
||||
size_t i;
|
||||
uint32_t *d = (uint32_t*)dest;
|
||||
|
||||
for( i = 0; i < count; i++ )
|
||||
d[i] = pat;
|
||||
|
||||
d += i;
|
||||
|
||||
bytes &= 3;
|
||||
if( bytes )
|
||||
memcpy( d, src_pattern, bytes );
|
||||
}
|
||||
#endif
|
||||
|
||||
size_t getBufferSize(cl_device_id device_id)
|
||||
{
|
||||
static int s_initialized = 0;
|
||||
|
||||
Reference in New Issue
Block a user