Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit c4bf16f

Browse files
Merge pull request #3 from IntelPython/update-to-dpctl-0.14
Updated sources to dpctl 0.14
2 parents 0063bfd + 673d7d7 commit c4bf16f

File tree

4 files changed

+9
-230
lines changed

4 files changed

+9
-230
lines changed

common_ext/cy_kde.pyx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
cimport cython
1919
from libc.stdint cimport uint16_t
2020

21-
cdef extern from "CL/sycl.hpp" namespace "sycl":
22-
cdef cppclass dpcpp_queue "sycl::queue":
23-
pass
24-
21+
cimport dpctl as c_dpctl
22+
from dpctl.sycl cimport queue as dpcpp_queue
23+
from dpctl.sycl cimport unwrap_queue
2524

2625
cdef extern from "kde.hpp" namespace "example":
2726
void kernel_density_estimate[T](
@@ -35,7 +34,6 @@ cdef extern from "kde.hpp" namespace "example":
3534
T # smoothing parameter
3635
)
3736

38-
cimport dpctl as c_dpctl
3937
import numpy as np
4038

4139
def kde_eval(
@@ -46,8 +44,7 @@ def kde_eval(
4644
):
4745
cdef cython.floating[:] f
4846

49-
cdef c_dpctl.DPCTLSyclQueueRef qref = py_q.get_queue_ref()
50-
cdef dpcpp_queue* sycl_queue = <dpcpp_queue *>qref
47+
cdef dpcpp_queue* sycl_queue = unwrap_queue(py_q.get_queue_ref())
5148

5249
if x.shape[1] != x_data.shape[1]:
5350
raise ValueError("Evaluation data and observation data have different dimensions")

common_src/kmeans_draft.hpp

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

kde_setuptools/setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
class custom_build_ext(build_ext):
2222
def build_extensions(self):
23-
self.compiler.set_executable("compiler_so", "dpcpp -fPIC")
24-
self.compiler.set_executable("compiler_cxx", "dpcpp -fPIC")
25-
self.compiler.set_executable("linker_so", "dpcpp -shared -fpic -fsycl-device-code-split=per_kernel")
23+
self.compiler.set_executable("compiler_so", "icpx -fsycl -fPIC")
24+
self.compiler.set_executable("compiler_cxx", "icpx -fsycl -fPIC")
25+
self.compiler.set_executable("linker_so", "icpx -fsycl -shared -fpic -fsycl-device-code-split=per_kernel")
2626
build_ext.build_extensions(self)
2727

2828
ext_modules = [

kde_skbuild/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ include(GNUInstallDirs)
2424
include(FetchContent)
2525
FetchContent_Declare(
2626
pybind11
27-
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.0.tar.gz
28-
URL_HASH SHA256=eacf582fa8f696227988d08cfc46121770823839fe9e301a20fbce67e7cd70ec
27+
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.10.2.tar.gz
28+
URL_HASH SHA256=93bd1e625e43e03028a3ea7389bba5d3f9f2596abc074b068e70f4ef9b1314ae
2929
)
3030
FetchContent_MakeAvailable(pybind11)
3131

0 commit comments

Comments
 (0)