Skip to content

Commit dc0796c

Browse files
feature: Add cl_khr_spirv_linkonce_odr to supported extensions
Related-To: NEO-8165 Signed-off-by: Andrzej Ratajewski <[email protected]>
1 parent 4e464e9 commit dc0796c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

opencl/test/unit_test/device/device_caps_tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ TEST_F(DeviceGetCapsTest, givenOpenCLVersion21WhenCapsAreCreatedThenDeviceReport
541541
}
542542

543543
EXPECT_TRUE(hasSubstr(caps.deviceExtensions, std::string("cl_intel_spirv_subgroups")));
544+
EXPECT_TRUE(hasSubstr(caps.deviceExtensions, std::string("cl_khr_spirv_linkonce_odr")));
544545
EXPECT_TRUE(hasSubstr(caps.deviceExtensions, std::string("cl_khr_spirv_no_integer_wrap_decoration")));
545546
}
546547
}
@@ -590,6 +591,7 @@ TEST_F(DeviceGetCapsTest, givenOpenCLVersion12WhenCapsAreCreatedThenDeviceDoesnt
590591

591592
EXPECT_FALSE(hasSubstr(caps.deviceExtensions, std::string("cl_intel_spirv_device_side_avc_motion_estimation")));
592593
EXPECT_FALSE(hasSubstr(caps.deviceExtensions, std::string("cl_intel_spirv_subgroups")));
594+
EXPECT_FALSE(hasSubstr(caps.deviceExtensions, std::string("cl_khr_spirv_linkonce_odr")));
593595
EXPECT_FALSE(hasSubstr(caps.deviceExtensions, std::string("cl_khr_spirv_no_integer_wrap_decoration")));
594596
}
595597

opencl/test/unit_test/platform/platform_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ TEST_F(PlatformTest, givenSupportingCl21WhenPlatformSupportsFp64ThenFillMatching
321321
}
322322

323323
EXPECT_TRUE(hasSubstr(compilerExtensions, std::string("cl_intel_spirv_subgroups")));
324+
EXPECT_TRUE(hasSubstr(compilerExtensions, std::string("cl_khr_spirv_linkonce_odr")));
324325
EXPECT_TRUE(hasSubstr(compilerExtensions, std::string("cl_khr_spirv_no_integer_wrap_decoration")));
325326
}
326327

shared/source/helpers/compiler_product_helper_base.inl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ std::string CompilerProductHelperHw<gfxProduct>::getDeviceExtensions(const Hardw
9696
extensions += "cl_intel_spirv_media_block_io ";
9797
}
9898
extensions += "cl_intel_spirv_subgroups ";
99+
extensions += "cl_khr_spirv_linkonce_odr ";
99100
extensions += "cl_khr_spirv_no_integer_wrap_decoration ";
100101

101102
extensions += "cl_intel_unified_shared_memory ";

0 commit comments

Comments
 (0)