diff --git a/test_common/harness/deviceInfo.cpp b/test_common/harness/deviceInfo.cpp index 96a04f9a..83db2926 100644 --- a/test_common/harness/deviceInfo.cpp +++ b/test_common/harness/deviceInfo.cpp @@ -24,8 +24,8 @@ /* Helper to return a string containing device information for the specified * device info parameter. */ -static std::string get_device_info_string(cl_device_id device, - cl_device_info param_name) +std::string get_device_info_string(cl_device_id device, + cl_device_info param_name) { size_t size = 0; int err; diff --git a/test_common/harness/deviceInfo.h b/test_common/harness/deviceInfo.h index 87afdc60..300c6d38 100644 --- a/test_common/harness/deviceInfo.h +++ b/test_common/harness/deviceInfo.h @@ -23,6 +23,11 @@ #include +/* Helper to return a string containing device information for the specified + * device info parameter. */ +std::string get_device_info_string(cl_device_id device, + cl_device_info param_name); + /* Determines if an extension is supported by a device. */ int is_extension_available(cl_device_id device, const char *extensionName); diff --git a/test_common/harness/kernelHelpers.cpp b/test_common/harness/kernelHelpers.cpp index f4a50169..2139821a 100644 --- a/test_common/harness/kernelHelpers.cpp +++ b/test_common/harness/kernelHelpers.cpp @@ -1579,6 +1579,15 @@ int printDeviceHeader( cl_device_id device ) deviceName, deviceVendor, deviceVersion, ( error == CL_SUCCESS ) ? ", CL C Version = " : "", ( error == CL_SUCCESS ) ? cLangVersion : "" ); + auto version = get_device_cl_version(device); + if (version >= Version(3, 0)) + { + auto ctsVersion = get_device_info_string( + device, CL_DEVICE_LATEST_CONFORMANCE_VERSION_PASSED); + log_info("Device latest conformance version passed: %s\n", + ctsVersion.c_str()); + } + return CL_SUCCESS; }