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:
@@ -360,14 +360,6 @@ int test_copy_fence(cl_device_id deviceID, cl_context context,
|
||||
size_t elementSize = get_explicit_type_size(vecType) * vecSize;
|
||||
log_info("Testing %s\n", vecNameString);
|
||||
|
||||
if (!is_extension_available(deviceID, "cl_khr_async_work_group_copy_fence"))
|
||||
{
|
||||
log_info(
|
||||
"Device does not support extended async copies fence. Skipping "
|
||||
"test.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
cl_long max_local_mem_size;
|
||||
error =
|
||||
clGetDeviceInfo(deviceID, CL_DEVICE_LOCAL_MEM_SIZE,
|
||||
@@ -732,6 +724,14 @@ int test_copy_fence_all_types(cl_device_id deviceID, cl_context context,
|
||||
|
||||
int errors = 0;
|
||||
|
||||
if (!is_extension_available(deviceID, "cl_khr_async_work_group_copy_fence"))
|
||||
{
|
||||
log_info(
|
||||
"Device does not support extended async copies fence. Skipping "
|
||||
"test.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (typeIndex = 0; vecType[typeIndex] != kNumExplicitTypes; typeIndex++)
|
||||
{
|
||||
if (vecType[typeIndex] == kDouble
|
||||
|
||||
Reference in New Issue
Block a user