Skip to content

Commit 9af90dd

Browse files
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.
1 parent 2da47aa commit 9af90dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpctl/tensor/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pybind11_add_module(${python_module_name} MODULE
4646
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/where.cpp
4747
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/device_support_queries.cpp
4848
)
49+
target_compile_options(${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int)
4950
target_link_options(${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel)
5051
if(UNIX)
5152
# this option is support on Linux only

0 commit comments

Comments
 (0)