diff --git a/opencl/source/cl_device/cl_device_caps.cpp b/opencl/source/cl_device/cl_device_caps.cpp index 2b2fc562c6..f2fb49e5c6 100644 --- a/opencl/source/cl_device/cl_device_caps.cpp +++ b/opencl/source/cl_device/cl_device_caps.cpp @@ -26,6 +26,7 @@ extern const char *familyName[]; static std::string vendor = "Intel(R) Corporation"; static std::string profile = "FULL_PROFILE"; static std::string spirVersions = "1.2 "; +static std::string spirvName = "SPIR-V"; #define QTR(a) #a #define TOSTR(b) QTR(b) static std::string driverVersion = TOSTR(NEO_OCL_DRIVER_VERSION); @@ -133,7 +134,7 @@ void ClDevice::initializeCaps() { deviceExtensions += "cl_khr_il_program "; deviceInfo.ilsWithVersion[0].version = CL_MAKE_VERSION(1, 2, 0); - strcpy_s(deviceInfo.ilsWithVersion[0].name, CL_NAME_VERSION_MAX_NAME_SIZE, sharedDeviceInfo.ilVersion); + strcpy_s(deviceInfo.ilsWithVersion[0].name, CL_NAME_VERSION_MAX_NAME_SIZE, spirvName.c_str()); if (supportsVme) { deviceExtensions += "cl_intel_spirv_device_side_avc_motion_estimation "; diff --git a/opencl/test/unit_test/device/get_device_info_tests.cpp b/opencl/test/unit_test/device/get_device_info_tests.cpp index 2b8f594b55..2efbcef72f 100644 --- a/opencl/test/unit_test/device/get_device_info_tests.cpp +++ b/opencl/test/unit_test/device/get_device_info_tests.cpp @@ -549,7 +549,7 @@ TEST(GetDeviceInfo, WhenQueryingIlsWithVersionThenProperValueIsReturned) { EXPECT_EQ(CL_SUCCESS, retVal); EXPECT_EQ(sizeof(cl_name_version), paramRetSize); EXPECT_EQ(CL_MAKE_VERSION(1u, 2u, 0u), ilsWithVersion->version); - EXPECT_STREQ("SPIR-V_1.2 ", ilsWithVersion->name); + EXPECT_STREQ("SPIR-V", ilsWithVersion->name); } else { EXPECT_EQ(CL_SUCCESS, retVal); EXPECT_EQ(0u, paramRetSize); diff --git a/shared/source/device/device_caps.cpp b/shared/source/device/device_caps.cpp index 97329f1672..75c156ccb2 100644 --- a/shared/source/device/device_caps.cpp +++ b/shared/source/device/device_caps.cpp @@ -14,7 +14,7 @@ namespace NEO { -static const char *spirvVersion = "SPIR-V_1.2 "; +static const char *spirvWithVersion = "SPIR-V_1.2 "; void Device::initializeCaps() { auto &hwInfo = getHardwareInfo(); @@ -32,7 +32,7 @@ void Device::initializeCaps() { ocl21FeaturesEnabled = DebugManager.flags.ForceOCL21FeaturesSupport.get(); } if (ocl21FeaturesEnabled) { - deviceInfo.ilVersion = spirvVersion; + deviceInfo.ilVersion = spirvWithVersion; addressing32bitAllowed = false; }