Skip to content

Commit 52254ea

Browse files
Fix build break with open-source intel/llvm DPC++
1 parent 09de29b commit 52254ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libsyclinterface/source/dpctl_sycl_device_interface.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,11 @@ DPCTLDevice_GetMaxWorkItemSizes(__dpctl_keep const DPCTLSyclDeviceRef DRef)
232232
auto D = unwrap(DRef);
233233
if (D) {
234234
try {
235+
#if __SYCL_COMPILER_VERSION >= 20220805
236+
auto id_sizes = D->get_info<info::device::max_work_item_sizes<3>>();
237+
#else
235238
auto id_sizes = D->get_info<info::device::max_work_item_sizes>();
239+
#endif
236240
sizes = new size_t[3];
237241
for (auto i = 0ul; i < 3; ++i) {
238242
sizes[i] = id_sizes[i];

0 commit comments

Comments
 (0)