Skip to content

Commit fbb3706

Browse files
Merge branch 'remove_c_api_tensor' into move_dpctl_ext_to_dpnp_tensor
1 parent 9939b55 commit fbb3706

14 files changed

Lines changed: 157 additions & 697 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -355,15 +355,4 @@ if(DEFINED SKBUILD)
355355
set(_ignore_me ${SKBUILD})
356356
endif()
357357

358-
# DpnpTensorCAPI: Interface library for dpnp tensor C-API
359-
# Provides access to:
360-
# 1. Public C-API headers from dpnp/include
361-
# 2. Generated Cython headers via per-target header interface libraries
362-
363-
add_library(DpnpTensorCAPI INTERFACE)
364-
target_include_directories(
365-
DpnpTensorCAPI
366-
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/dpnp/include
367-
)
368-
369358
add_subdirectory(dpnp)

dpctl_ext/CMakeLists.txt

Lines changed: 0 additions & 210 deletions
This file was deleted.

dpctl_ext/apis/include/dpctl_ext_capi.h

Lines changed: 0 additions & 106 deletions
This file was deleted.

dpnp/backend/extensions/blas/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ set(_module_src
3939
pybind11_add_module(${python_module_name} MODULE ${_module_src})
4040
add_sycl_to_target(TARGET ${python_module_name} SOURCES ${_module_src})
4141

42-
target_link_libraries(${python_module_name} PRIVATE DpnpTensorCAPI)
42+
# Ensure Cython modules build first so _usmarray.h exists
43+
add_dependencies(${python_module_name} _usmarray)
4344

4445
if(_dpnp_sycl_targets)
4546
# make fat binary
@@ -77,7 +78,11 @@ target_include_directories(
7778
target_include_directories(
7879
${python_module_name}
7980
SYSTEM
80-
PRIVATE ${SYCL_INCLUDE_DIR} ${Dpctl_INCLUDE_DIRS} ${Dpctl_TENSOR_INCLUDE_DIR}
81+
PRIVATE
82+
${SYCL_INCLUDE_DIR}
83+
${Dpctl_INCLUDE_DIRS}
84+
${Dpctl_TENSOR_INCLUDE_DIR}
85+
${CMAKE_BINARY_DIR} # For generated Cython headers
8186
)
8287

8388
if(WIN32)

dpnp/backend/extensions/fft/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ set(_module_src ${CMAKE_CURRENT_SOURCE_DIR}/fft_py.cpp)
3333
pybind11_add_module(${python_module_name} MODULE ${_module_src})
3434
add_sycl_to_target(TARGET ${python_module_name} SOURCES ${_module_src})
3535

36-
target_link_libraries(${python_module_name} PRIVATE DpnpTensorCAPI)
36+
# Ensure Cython modules build first so _usmarray.h exists
37+
add_dependencies(${python_module_name} _usmarray)
3738

3839
if(_dpnp_sycl_targets)
3940
# make fat binary
@@ -70,7 +71,11 @@ target_include_directories(
7071
target_include_directories(
7172
${python_module_name}
7273
SYSTEM
73-
PRIVATE ${SYCL_INCLUDE_DIR} ${Dpctl_INCLUDE_DIRS} ${Dpctl_TENSOR_INCLUDE_DIR}
74+
PRIVATE
75+
${SYCL_INCLUDE_DIR}
76+
${Dpctl_INCLUDE_DIRS}
77+
${Dpctl_TENSOR_INCLUDE_DIR}
78+
${CMAKE_BINARY_DIR} # For generated Cython headers
7479
)
7580

7681
if(WIN32)

0 commit comments

Comments
 (0)