mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 22:19:02 +00:00
Print the latest conformance version passed reported by the device (#959)
Fixes #798 Signed-off-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user