From 9af90dddcd9cf897708e908ce705fc77c12330ed Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Thu, 4 May 2023 21:35:08 -0500 Subject: [PATCH] Use -fno-sycl-id-queries-fit-in-int to resolve gh-1184 In our internal inquiries we also encountered DPC++ RT bringing up the need to use this option. So here it goes. --- dpctl/tensor/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/dpctl/tensor/CMakeLists.txt b/dpctl/tensor/CMakeLists.txt index 1025072c08..9a79830e47 100644 --- a/dpctl/tensor/CMakeLists.txt +++ b/dpctl/tensor/CMakeLists.txt @@ -46,6 +46,7 @@ pybind11_add_module(${python_module_name} MODULE ${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/where.cpp ${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/device_support_queries.cpp ) +target_compile_options(${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int) target_link_options(${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel) if(UNIX) # this option is support on Linux only