Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Insert no coverage pragma
  • Loading branch information
sommerlukas committed Feb 5, 2025
commit cd5fcafef121a6aac6b74a16975394da3312db81
4 changes: 2 additions & 2 deletions dpctl/_sycl_queue.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ cdef DPCTLSyclEventRef _memcpy_impl(
c_src_ptr = <void*>(<_Memory>src).get_data_ptr()
elif _is_buffer(src):
ret_code = PyObject_GetBuffer(src, &src_buf_view, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS)
if ret_code != 0:
if ret_code != 0: # pragma: no cover
raise RuntimeError("Could not access buffer")
c_src_ptr = src_buf_view.buf
src_is_buf = True
Expand All @@ -371,7 +371,7 @@ cdef DPCTLSyclEventRef _memcpy_impl(
c_dst_ptr = <void*>(<_Memory>dst).get_data_ptr()
elif _is_buffer(dst):
ret_code = PyObject_GetBuffer(dst, &dst_buf_view, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE)
if ret_code != 0:
if ret_code != 0: # pragma: no cover
raise RuntimeError("Could not access buffer")
Comment thread
oleksandr-pavlyk marked this conversation as resolved.
c_dst_ptr = dst_buf_view.buf
dst_is_buf = True
Expand Down