diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml index dc22ac248152..d7d647c7a192 100644 --- a/conda-recipe/meta.yaml +++ b/conda-recipe/meta.yaml @@ -13,7 +13,7 @@ requirements: - python - setuptools - numpy >=1.23 - - cython <3.1 + - cython - cmake >=3.21 - ninja - git diff --git a/dpnp/dpnp_algo/dpnp_arraycreation.py b/dpnp/dpnp_algo/dpnp_arraycreation.py index b327c340a0fb..138e1778bef7 100644 --- a/dpnp/dpnp_algo/dpnp_arraycreation.py +++ b/dpnp/dpnp_algo/dpnp_arraycreation.py @@ -32,8 +32,8 @@ import numpy import dpnp -import dpnp.dpnp_utils as utils from dpnp.dpnp_array import dpnp_array +from dpnp.dpnp_utils import get_usm_allocations, map_dtype_to_device __all__ = [ "dpnp_geomspace", @@ -60,7 +60,7 @@ def dpnp_geomspace( endpoint=True, axis=0, ): - usm_type_alloc, sycl_queue_alloc = utils.get_usm_allocations([start, stop]) + usm_type_alloc, sycl_queue_alloc = get_usm_allocations([start, stop]) if sycl_queue is None and device is None: sycl_queue = sycl_queue_alloc @@ -77,7 +77,7 @@ def dpnp_geomspace( stop = _as_usm_ndarray(stop, _usm_type, sycl_queue_normalized) dt = numpy.result_type(start, stop, float(num)) - dt = utils.map_dtype_to_device(dt, sycl_queue_normalized.sycl_device) + dt = map_dtype_to_device(dt, sycl_queue_normalized.sycl_device) if dtype is None: dtype = dt @@ -144,7 +144,7 @@ def dpnp_linspace( retstep=False, axis=0, ): - usm_type_alloc, sycl_queue_alloc = utils.get_usm_allocations([start, stop]) + usm_type_alloc, sycl_queue_alloc = get_usm_allocations([start, stop]) if sycl_queue is None and device is None: sycl_queue = sycl_queue_alloc @@ -164,7 +164,7 @@ def dpnp_linspace( stop = _as_usm_ndarray(stop, _usm_type, sycl_queue_normalized) dt = numpy.result_type(start, stop, float(num)) - dt = utils.map_dtype_to_device(dt, sycl_queue_normalized.sycl_device) + dt = map_dtype_to_device(dt, sycl_queue_normalized.sycl_device) if dtype is None: dtype = dt @@ -251,7 +251,7 @@ def dpnp_logspace( axis=0, ): if not dpnp.isscalar(base): - usm_type_alloc, sycl_queue_alloc = utils.get_usm_allocations( + usm_type_alloc, sycl_queue_alloc = get_usm_allocations( [start, stop, base] ) diff --git a/dpnp/dpnp_utils/dpnp_algo_utils.pyx b/dpnp/dpnp_utils/dpnp_algo_utils.pyx index 60ab5aa16c1f..cc8acf068443 100644 --- a/dpnp/dpnp_utils/dpnp_algo_utils.pyx +++ b/dpnp/dpnp_utils/dpnp_algo_utils.pyx @@ -449,6 +449,7 @@ cdef tuple get_common_usm_allocation(dpnp_descriptor x1, dpnp_descriptor x2): return (common_sycl_queue.sycl_device, common_usm_type, common_sycl_queue) +@cython.linetrace(False) cdef (DPNPFuncType, void *) get_ret_type_and_func(DPNPFuncData kernel_data, cpp_bool has_aspect_fp64): """ diff --git a/environments/build_with_oneapi.yml b/environments/build_with_oneapi.yml index ba9f878235ef..443b7a5202c9 100644 --- a/environments/build_with_oneapi.yml +++ b/environments/build_with_oneapi.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: - cmake - - cython <3.1 + - cython - ninja - numpy - pytest