From d6cfe817c87542c59b0c596c7fe59bbc0c710a57 Mon Sep 17 00:00:00 2001 From: Jack Frankland <30410009+FranklandJack@users.noreply.github.com> Date: Mon, 29 Jun 2020 16:37:08 +0100 Subject: [PATCH] Add `CL_DEVICE_IMAGE_SUPPORT` to clDeviceInfo File (#830) - [x] Add `CL_DEVICE_IMAGE_SUPPORT` to the clDeviceInfo file which contains device specific information for the purposes of offline compilation. For devices with images support `CL_DEVICE_IMAGE_SUPPORT=1` is printed, otherwise `CL_DEVICE_IMAGE_SUPPORT=0`. --- test_common/harness/kernelHelpers.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_common/harness/kernelHelpers.cpp b/test_common/harness/kernelHelpers.cpp index 1f76f361..ee1be76e 100644 --- a/test_common/harness/kernelHelpers.cpp +++ b/test_common/harness/kernelHelpers.cpp @@ -372,6 +372,8 @@ static cl_int get_cl_device_info_str(const cl_device_id device, const cl_uint de clDeviceInfoStream << "CL_DEVICE_IL_VERSION=\"" << ilVersionString << "\"" << std::endl; } clDeviceInfoStream << "CL_DEVICE_VERSION=\"" << versionString << "\"" << std::endl; + clDeviceInfoStream << "CL_DEVICE_IMAGE_SUPPORT=" + << (0 == checkForImageSupport(device)) << std::endl; clDeviceInfo = clDeviceInfoStream.str();