We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd5fcaf commit a8bc75eCopy full SHA for a8bc75e
dpctl/_sycl_queue.pyx
@@ -372,6 +372,8 @@ cdef DPCTLSyclEventRef _memcpy_impl(
372
elif _is_buffer(dst):
373
ret_code = PyObject_GetBuffer(dst, &dst_buf_view, PyBUF_SIMPLE | PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE)
374
if ret_code != 0: # pragma: no cover
375
+ if src_is_buf:
376
+ PyBuffer_Release(&src_buf_view)
377
raise RuntimeError("Could not access buffer")
378
c_dst_ptr = dst_buf_view.buf
379
dst_is_buf = True
0 commit comments