Skip to content

Commit

Permalink
Merge pull request #1957 from IntelPython/technical-debt-changes
Browse files Browse the repository at this point in the history
Technical debt changes
  • Loading branch information
oleksandr-pavlyk authored Jan 10, 2025
2 parents 3146183 + 065413e commit 9f8f90b
Show file tree
Hide file tree
Showing 109 changed files with 1,393 additions and 2,022 deletions.
16 changes: 2 additions & 14 deletions dpctl/tensor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,10 @@ set(_reduction_sources
set(_sorting_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/merge_sort.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/merge_argsort.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/searchsorted.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/topk.cpp
)
set(_sorting_radix_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/radix_sort.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/radix_argsort.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/searchsorted.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/sorting/topk.cpp
)
set(_static_lib_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/simplify_iteration_space.cpp
Expand Down Expand Up @@ -156,10 +154,6 @@ set(_tensor_sorting_impl_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/tensor_sorting.cpp
${_sorting_sources}
)
set(_tensor_sorting_radix_impl_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/tensor_sorting_radix.cpp
${_sorting_radix_sources}
)
set(_linalg_sources
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/elementwise_functions/elementwise_functions_type_utils.cpp
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/linalg_functions/dot.cpp
Expand Down Expand Up @@ -214,12 +208,6 @@ add_sycl_to_target(TARGET ${python_module_name} SOURCES ${_tensor_sorting_impl_s
target_link_libraries(${python_module_name} PRIVATE ${_static_lib_trgt})
list(APPEND _py_trgts ${python_module_name})

set(python_module_name _tensor_sorting_radix_impl)
pybind11_add_module(${python_module_name} MODULE ${_tensor_sorting_radix_impl_sources})
add_sycl_to_target(TARGET ${python_module_name} SOURCES ${_tensor_sorting_radix_impl_sources})
target_link_libraries(${python_module_name} PRIVATE ${_static_lib_trgt})
list(APPEND _py_trgts ${python_module_name})

set(python_module_name _tensor_linalg_impl)
pybind11_add_module(${python_module_name} MODULE ${_tensor_linalg_impl_sources})
add_sycl_to_target(TARGET ${python_module_name} SOURCES ${_tensor_linalg_impl_sources})
Expand Down
8 changes: 3 additions & 5 deletions dpctl/tensor/_sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@
from ._tensor_sorting_impl import (
_argsort_ascending,
_argsort_descending,
_sort_ascending,
_sort_descending,
_topk,
)
from ._tensor_sorting_radix_impl import (
_radix_argsort_ascending,
_radix_argsort_descending,
_radix_sort_ascending,
_radix_sort_descending,
_radix_sort_dtype_supported,
_sort_ascending,
_sort_descending,
_topk,
)

__all__ = ["sort", "argsort"]
Expand Down
Loading

0 comments on commit 9f8f90b

Please sign in to comment.