This repository was archived by the owner on Sep 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-230
lines changed
Expand file tree Collapse file tree 4 files changed +9
-230
lines changed Original file line number Diff line number Diff line change 1818cimport cython
1919from 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
2625cdef 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
3937import numpy as np
4038
4139def 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" )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2020
2121class 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
2828ext_modules = [
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ include(GNUInstallDirs)
2424include (FetchContent)
2525FetchContent_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)
3030FetchContent_MakeAvailable(pybind11)
3131
You can’t perform that action at this time.
0 commit comments