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
5 changes: 4 additions & 1 deletion examples/cython/sycl_buffer/src/use_sycl_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@

#pragma once

#include <CL/sycl.hpp>
#include <algorithm>
#include <cstddef>
#include <sycl/sycl.hpp>

using std::size_t;

inline size_t upper_multiple(size_t n, size_t wg)
{
Expand Down
4 changes: 2 additions & 2 deletions examples/cython/sycl_buffer/syclbuffer/_buffer_example.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ cdef extern from "use_sycl_buffer.hpp":
size_t, # number of columns of the input matrix
const T *, # data pointer of the input matrix
T * # pointer for the resulting vector
) nogil except+
) except+ nogil


def columnwise_total(cython.floating[:, ::1] mat, queue=None):
Expand Down Expand Up @@ -83,7 +83,7 @@ def columnwise_total(cython.floating[:, ::1] mat, queue=None):
q = c_dpctl.SyclQueue(queue)
exec_queue_ptr = unwrap_queue(q.get_queue_ref())

with nogil:
with nogil, cython.boundscheck(False):
native_columnwise_total(
exec_queue_ptr[0], n_rows, n_cols, &mat[0,0], &res_memslice[0]
)
Expand Down
2 changes: 1 addition & 1 deletion examples/cython/use_dpctl_sycl/use_dpctl_sycl/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#pragma once

#include <CL/sycl.hpp>
#include <string>
#include <sycl/sycl.hpp>

std::string get_device_name(sycl::device d)
{
Expand Down
2 changes: 1 addition & 1 deletion examples/cython/usm_memory/src/sycl_blackscholes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@

#pragma once

#include <CL/sycl.hpp>
#include <oneapi/mkl.hpp>
#include <oneapi/mkl/rng/device.hpp>
#include <sycl/sycl.hpp>

template <typename T> class black_scholes_kernel;

Expand Down
2 changes: 1 addition & 1 deletion examples/pybind11/onemkl_gemv/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
//===----------------------------------------------------------------------===//

#include "cg_solver.hpp"
#include <CL/sycl.hpp>
#include <chrono>
#include <iostream>
#include <oneapi/mkl.hpp>
#include <sycl/sycl.hpp>

using T = double;

Expand Down
2 changes: 1 addition & 1 deletion examples/pybind11/onemkl_gemv/sycl_gemm/_onemkl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
//===----------------------------------------------------------------------===//

// clang-format off
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>
#include <oneapi/mkl.hpp>
#include "cg_solver.hpp"
#include <pybind11/pybind11.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/pybind11/onemkl_gemv/sycl_gemm/cg_solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

#pragma once

#include <CL/sycl.hpp>
#include <oneapi/mkl.hpp>
#include <sycl/sycl.hpp>

namespace cg_solver
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
//===----------------------------------------------------------------------===//

#include "dpctl4pybind11.hpp"
#include <CL/sycl.hpp>
#include <cstdint>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <sycl/sycl.hpp>
#include <vector>

namespace py = pybind11;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
//===----------------------------------------------------------------------===//

#include "dpctl4pybind11.hpp"
#include <CL/sycl.hpp>
#include <cstdint>
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <sycl/sycl.hpp>

namespace py = pybind11;

Expand Down
Loading