Skip to content

Commit edbdf0d

Browse files
Merge pull request #1418 from IntelPython/port-back-fixes-from-async-ref-count-increment-branch
Port back fixes from async-ref-count-increment branch
2 parents b1c19fe + b73df1f commit edbdf0d

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

dpctl/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ add_custom_target(_build_time_create_dpctl_include ALL
8686
)
8787

8888
set(_copied_header_files)
89-
file(GLOB _syclinterface_h ${CMAKE_SOURCE_DIR}/libsyclinterface/include/*.h)
89+
file(GLOB _syclinterface_h ${CMAKE_SOURCE_DIR}/libsyclinterface/include/*.h*)
9090
foreach(hf ${_syclinterface_h})
9191
get_filename_component(_header_name ${hf} NAME)
9292
set(_target_header_file ${DPCTL_INCLUDE_DIR}/syclinterface/${_header_name})

dpctl/tests/test_service.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,18 @@ def test_get_include():
6868
assert type(incl) is str
6969
assert incl != ""
7070
assert os.path.isdir(incl)
71+
assert os.path.exists(os.path.join(incl, "dpctl4pybind11.hpp"))
72+
assert os.path.exists(os.path.join(incl, "dpctl_capi.h"))
73+
assert os.path.exists(os.path.join(incl, "dpctl_sycl_interface.h"))
74+
assert os.path.exists(
75+
os.path.join(incl, "syclinterface", "Config", "dpctl_config.h")
76+
)
77+
assert os.path.exists(
78+
os.path.join(incl, "syclinterface", "dpctl_sycl_types.h")
79+
)
80+
assert os.path.exists(
81+
os.path.join(incl, "syclinterface", "dpctl_sycl_type_casters.hpp")
82+
)
7183

7284

7385
def test_get_dpcppversion():

examples/pybind11/use_dpctl_sycl_kernel/resource/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
```bash
44
export TOOLS_DIR=$(dirname $(dirname $(which icx)))/bin-llvm
5-
$TOOLS_DIR/clang -cc1 -triple spir double_it.cl -finclude-default-header -flto -emit -llvm-bc -o double_it.bc
5+
$TOOLS_DIR/clang -cc1 -triple spir double_it.cl -finclude-default-header -flto -emit-llvm-bc -o double_it.bc
66
$TOOLS_DIR/llvm-spirv double_it.bc -o double_it.spv
77
rm double_it.bc
88
```

libsyclinterface/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
cmake_minimum_required(VERSION 3.10...3.22 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.21...3.22 FATAL_ERROR)
22

33
project(
44
"libDPCTLSYCLInterface"
5+
LANGUAGES C CXX
56
DESCRIPTION "A C API for a subset of SYCL"
67
)
78

@@ -259,8 +260,7 @@ endif()
259260

260261
# Install all headers
261262

262-
file(GLOB MAIN_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h")
263-
file(GLOB MAIN_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp")
263+
file(GLOB MAIN_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h" "${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp")
264264
file(GLOB SUPPORT_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Support/*.h")
265265
file(GLOB CONFIG_HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/include/Config/*.h")
266266

0 commit comments

Comments
 (0)