Skip to content

Commit 550b20e

Browse files
_device_queries extension needs SYCL
1 parent 30b49b1 commit 550b20e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpctl/utils/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ add_custom_target(_dpctl4pybind11_header_ready
1616
)
1717

1818
set(python_module_name _device_queries)
19+
set(_module_src ${CMAKE_CURRENT_SOURCE_DIR}/src/device_queries.cpp)
1920
pybind11_add_module(${python_module_name} MODULE
20-
${CMAKE_CURRENT_SOURCE_DIR}/src/device_queries.cpp
21+
${_module_src}
2122
)
23+
add_sycl_to_target(TARGET ${python_module_name} SOURCES ${_module_src})
2224
target_include_directories(${python_module_name}
2325
PRIVATE
2426
${CMAKE_CURRENT_SOURCE_DIR}/../include

0 commit comments

Comments
 (0)