Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

- name: Install dpctl dependencies
run: |
pip install numpy cython setuptools"<80" scikit-build cmake ninja versioneer[toml]==0.29
pip install cython setuptools"<80" scikit-build cmake ninja versioneer[toml]==0.29

- name: Report compiler version
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* `import_dpctl()` now returns 0 on success and -1 with a Python exception set on failure, and `dpctl4pybind11.hpp` raises that exception rather than failing on the first C-API call [gh-2359](https://github.com/IntelPython/dpctl/pull/2359)
* The event returned by `dpctl.SyclQueue.keep_args_alive`, `dpctl::utils::keep_args_alive` and `dpctl.SyclQueue._submit_keep_args_alive` is now for an empty kernel that gates the deferred release rather than for a `host_task` that performs it, so its completion means that the objects are no longer in use rather than that they have been released [gh-2359](https://github.com/IntelPython/dpctl/pull/2359)
* `dpctl.utils.SequentialOrderManager[q].submitted_events` includes the queue's last event for in-order queues when `sycl_ext_oneapi_in_order_queue_events` is available, and `wait()` waits for all work on an in-order queue [gh-2299](https://github.com/IntelPython/dpctl/pull/2299)
* NumPy is no longer a build dependency of `dpctl`, only a run-time dependency [gh-2436](https://github.com/IntelPython/dpctl/pull/2436)

### Deprecated
* Deprecated `dpctl.SyclQueue._submit_keep_args_alive` in favor of `dpctl.SyclQueue.keep_args_alive`, which it now calls and which behaves identically [gh-2359](https://github.com/IntelPython/dpctl/pull/2359)
Expand Down
2 changes: 0 additions & 2 deletions conda-recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ python:
- "3.14.* *_cp314t"
- "3.15.* *_cp315"
- "3.15.* *_cp315t"
numpy:
- '2'
c_compiler: # [linux]
- gcc # [linux]
cxx_compiler: # [linux]
Expand Down
1 change: 0 additions & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ requirements:
- scikit-build >=0.17.0,<1.0
- cython >=3.1.0 # [py>=313]
- cython >=3.0.10 # [py<313]
- numpy
# WARNING: check with doc how to upgrade
Comment on lines 39 to 42

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With numpy gone from host, the package no longer gets numpy's run_exports, so the run entry numpy has no bounds at all. Before, conda-forge's numpy 2 added >=1.x,<3 to it. Now a future numpy 3 satisfies it, and conda disagrees with numpy>=2.0.0 in pyproject.toml. Could run say numpy >=2.0.0 (and maybe <3)?

- versioneer ==0.29
# versioneer dependency
Expand Down
2 changes: 1 addition & 1 deletion docs/doc_sources/contributor_guides/building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ Build and Install with scikit-build
To build using Python ``setuptools`` and ``scikit-build``, install the following Python packages:

- ``cython``
- ``numpy``
- ``cmake``
- ``scikit-build``
- ``ninja``
- ``versioneer``
- ``numpy`` (runtime dependency)
- ``gtest`` (optional to run C API tests)
- ``gmock`` (optional to run C API tests)
- ``pytest`` (optional to run Python API tests)
Expand Down
3 changes: 0 additions & 3 deletions dpctl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
find_package(Python REQUIRED COMPONENTS NumPy)

# -t is to only Cythonize sources with timestamps newer than existing CXX files (if present)
# -w is to set working directory (and correctly set __pyx_f[] array of filenames)
set(CYTHON_FLAGS "-t -w \"${CMAKE_SOURCE_DIR}\"")
Expand Down Expand Up @@ -135,7 +133,6 @@ function(build_dpctl_ext _trgt _src _dest)
)
endif()
endif()
target_link_libraries(${_trgt} PRIVATE Python::NumPy)
if (DPCTL_GENERATE_COVERAGE)
target_compile_definitions(${_trgt} PRIVATE CYTHON_TRACE=1 CYTHON_TRACE_NOGIL=1)
if (BUILD_DPCTL_EXT_SYCL)
Expand Down
3 changes: 1 addition & 2 deletions examples/cython/sycl_buffer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
# Define CMAKE_INSTALL_xxx: LIBDIR, INCLUDEDIR
include(GNUInstallDirs)

find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(Dpctl REQUIRED)

# -w is to set working directory (and correctly set __pyx_f[] array of filenames)
Expand All @@ -29,7 +29,6 @@ add_cython_target(${py_module_name} ${_cy_source} CXX OUTPUT_VAR _generated_cy_s
Python_add_library(${py_module_name} MODULE WITH_SOABI ${_generated_cy_src})
add_sycl_to_target(TARGET ${py_module_name} SOURCES ${_generated_cy_src})
target_include_directories(${py_module_name} PUBLIC src ${Dpctl_INCLUDE_DIRS})
target_link_libraries(${py_module_name} PRIVATE Python::NumPy)

install(TARGETS ${py_module_name} DESTINATION syclbuffer)

Expand Down
3 changes: 1 addition & 2 deletions examples/cython/use_dpctl_sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
# Define CMAKE_INSTALL_xxx: LIBDIR, INCLUDEDIR
include(GNUInstallDirs)

find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(Dpctl REQUIRED)

# -w is to set working directory (and correctly set __pyx_f[] array of filenames)
Expand All @@ -29,7 +29,6 @@ add_cython_target(${py_module_name} ${_cy_source} CXX OUTPUT_VAR _generated_cy_s
Python_add_library(${py_module_name} MODULE WITH_SOABI ${_generated_cy_src})
add_sycl_to_target(TARGET ${py_module_name} SOURCES ${_generated_cy_src})
target_include_directories(${py_module_name} PUBLIC include ${Dpctl_INCLUDE_DIRS})
target_link_libraries(${py_module_name} PRIVATE Python::NumPy)

install(TARGETS ${py_module_name} DESTINATION use_dpctl_sycl)

Expand Down
2 changes: 1 addition & 1 deletion examples/pybind11/external_usm_allocation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(pybind11)

find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(Dpctl REQUIRED)

set(py_module_name _external_usm_alloc)
Expand Down
2 changes: 1 addition & 1 deletion examples/pybind11/onemkl_gemv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(pybind11)

find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(Dpctl REQUIRED)

find_package(TBB REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion examples/pybind11/use_dpctl_sycl_kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(pybind11)

find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(Dpctl REQUIRED)

set(py_module_name _use_kernel)
Expand Down
2 changes: 1 addition & 1 deletion examples/pybind11/use_dpctl_sycl_queue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(pybind11)

find_package(Python REQUIRED COMPONENTS Development.Module NumPy)
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
find_package(Dpctl REQUIRED)

set(py_module_name _use_queue_device)
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ requires = [
"ninja>=1.11.1; platform_system!='Windows'",
"cmake>=3.29.0",
"cython>=3.1.0",
"numpy >=1.26.0",
# WARNING: check with doc how to upgrade
"versioneer[toml]==0.29"
]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
setuptools
cython
numpy
wheel
Loading