cl21: Reuse test harness code in kernel_read_write (#242)

Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
This commit is contained in:
Radek Szymanski
2019-05-01 14:19:47 +01:00
committed by Kévin Petit
parent d8f307f7e6
commit f747995668
14 changed files with 103 additions and 254 deletions

View File

@@ -819,7 +819,7 @@ void memset_pattern4(void *dest, const void *src_pattern, size_t bytes )
}
#endif
extern cl_device_type GetDeviceType( cl_device_id d )
cl_device_type GetDeviceType( cl_device_id d )
{
cl_device_type result = -1;
cl_int err = clGetDeviceInfo( d, CL_DEVICE_TYPE, sizeof( result ), &result, NULL );