From b5d198b1fcbf49acddc72ef877a856d4c17e55b0 Mon Sep 17 00:00:00 2001 From: Jeremy Kemp Date: Fri, 31 Jul 2020 13:09:41 +0100 Subject: [PATCH] Test for IL support in unload_platform_compiler (#862) --- test_conformance/compiler/test_unload_platform_compiler.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_conformance/compiler/test_unload_platform_compiler.cpp b/test_conformance/compiler/test_unload_platform_compiler.cpp index f88689d9..e55bd93f 100644 --- a/test_conformance/compiler/test_unload_platform_compiler.cpp +++ b/test_conformance/compiler/test_unload_platform_compiler.cpp @@ -262,7 +262,10 @@ public: const cl_device_id device) : build_base{ context, device } { - if (get_device_cl_version(device) >= Version(2, 1)) + Version version = get_device_cl_version(device); + std::string sILVersion = get_device_il_version_string(device); + if ((version >= Version(2, 1) && version < Version(3, 0)) + || (version >= Version(3, 0) && sILVersion.length() != 1)) { m_CreateProgramWithIL = clCreateProgramWithIL; m_enabled = true;