@@ -467,7 +467,8 @@ ctypedef DPCTLSyclEventRef (*queue_copy_fn)(
467467)
468468
469469ctypedef DPCTLSyclEventRef (* queue_copy_with_events_fn)(
470- const DPCTLSyclQueueRef, void * , const void * , size_t, const DPCTLSyclEventRef* , size_t
470+ const DPCTLSyclQueueRef, void * , const void * , size_t,
471+ const DPCTLSyclEventRef* , size_t
471472)
472473
473474
@@ -511,7 +512,6 @@ cdef DPCTLSyclEventRef _copy_memcpy_impl(
511512 cdef bint dst_is_buf = False
512513 cdef int ret_code = 0
513514 cdef size_t element_size = 0
514- cdef size_t element_count = 0
515515
516516 if dtype is not None :
517517 element_size = _get_dtype_size(dtype)
@@ -520,7 +520,6 @@ cdef DPCTLSyclEventRef _copy_memcpy_impl(
520520 f" byte_count ({byte_count}) must be a multiple of dtype "
521521 f" element size ({element_size} bytes for '{dtype}')"
522522 )
523- element_count = byte_count // element_size
524523
525524 if isinstance (src, _Memory):
526525 c_src_ptr = < void * > (< _Memory> src).get_data_ptr()
@@ -1516,8 +1515,9 @@ cdef class SyclQueue(_SyclQueue):
15161515 count (int):
15171516 Number of bytes to copy.
15181517 dtype (str, optional):
1519- Data type string (e.g., 'i4', 'f8') for typed copy validation.
1520- If provided, validates that count is a multiple of the element size.
1518+ Data type string (e.g., 'i4', 'f8') for typed copy
1519+ validation. If provided, validates that count is a
1520+ multiple of the element size.
15211521 """
15221522 cdef DPCTLSyclEventRef ERef = NULL
15231523
@@ -1550,8 +1550,9 @@ cdef class SyclQueue(_SyclQueue):
15501550 dEvents (List[dpctl.SyclEvent], optional):
15511551 Events that this copy depends on.
15521552 dtype (str, optional):
1553- Data type string (e.g., 'i4', 'f8') for typed copy validation.
1554- If provided, validates that count is a multiple of the element size.
1553+ Data type string (e.g., 'i4', 'f8') for typed copy
1554+ validation. If provided, validates that count is a
1555+ multiple of the element size.
15551556 Supported types: i1, u1, i2, u2, i4, u4, i8, u8, f4, f8.
15561557
15571558 Returns:
0 commit comments