mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
basic/async: Check for extension only once per test (#1242)
As the extension is vector size and type independent, we only need to check for the extension once per test and not for every possible combination of inputs, thereby drastically reducing the log output of the test when the extension is not supported.
This commit is contained in:
@@ -117,13 +117,6 @@ int test_copy2D(cl_device_id deviceID, cl_context context,
|
||||
log_info("Testing %s with srcStride = %d, dstStride = %d\n", vecNameString,
|
||||
srcStride, dstStride);
|
||||
|
||||
if (!is_extension_available(deviceID, "cl_khr_extended_async_copies"))
|
||||
{
|
||||
log_info(
|
||||
"Device does not support extended async copies. Skipping test.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
cl_long max_local_mem_size;
|
||||
error =
|
||||
clGetDeviceInfo(deviceID, CL_DEVICE_LOCAL_MEM_SIZE,
|
||||
@@ -386,6 +379,13 @@ int test_copy2D_all_types(cl_device_id deviceID, cl_context context,
|
||||
|
||||
int errors = 0;
|
||||
|
||||
if (!is_extension_available(deviceID, "cl_khr_extended_async_copies"))
|
||||
{
|
||||
log_info(
|
||||
"Device does not support extended async copies. Skipping test.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (typeIndex = 0; vecType[typeIndex] != kNumExplicitTypes; typeIndex++)
|
||||
{
|
||||
if (vecType[typeIndex] == kDouble
|
||||
|
||||
Reference in New Issue
Block a user