Skip to content
Merged
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
36 changes: 5 additions & 31 deletions dpnp/backend/include/dpnp4pybind11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,8 @@

#pragma once

// Include dpctl SYCL interface from external dpctl package
#include "syclinterface/dpctl_sycl_extension_interface.h"
#include "syclinterface/dpctl_sycl_types.h"

#ifdef __cplusplus
#define CYTHON_EXTERN_C extern "C"
#else
#define CYTHON_EXTERN_C
#endif

// Include dpctl C-API headers (both declarations and import functions)
#include "dpctl/_sycl_context.h"
#include "dpctl/_sycl_context_api.h"
#include "dpctl/_sycl_device.h"
#include "dpctl/_sycl_device_api.h"
#include "dpctl/_sycl_event.h"
#include "dpctl/_sycl_event_api.h"
#include "dpctl/_sycl_queue.h"
#include "dpctl/_sycl_queue_api.h"
#include "dpctl/memory/_memory.h"
#include "dpctl/memory/_memory_api.h"
#include "dpctl/program/_program.h"
#include "dpctl/program/_program_api.h"
// Include dpctl C-API headers
#include "dpctl_capi.h"

// Include generated Cython headers for usm_ndarray
// (struct definition and constants only)
Expand Down Expand Up @@ -253,14 +232,9 @@ class dpctl_capi
default_usm_memory_{}, default_usm_ndarray_{}, as_usm_memory_{}

{
// Import dpctl SYCL interface modules
// This imports python modules and initializes pointers to Python types
import_dpctl___sycl_device();
import_dpctl___sycl_context();
import_dpctl___sycl_event();
import_dpctl___sycl_queue();
import_dpctl__memory___memory();
import_dpctl__program___program();
// Import dpctl C-API
// (device, context, event, queue, memory, program)
import_dpctl();
// Import dpnp tensor module for PyUSMArrayType
import_dpnp__tensor___usmarray();

Expand Down
2 changes: 1 addition & 1 deletion dpnp/tests/tensor/elementwise/test_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_exp_real_contig(dtype):
assert_allclose(dpt.asnumpy(Z), np.repeat(Ynp, n_rep), atol=tol, rtol=tol)


@pytest.mark.filterwarnings("ignore:overflow encountered:RuntimeWarning")
@pytest.mark.filterwarnings("ignore::RuntimeWarning")
@pytest.mark.parametrize("dtype", ["c8", "c16"])
def test_exp_complex_contig(dtype):
q = get_queue_or_skip()
Expand Down
Loading