Skip to content

Commit 9841f9e

Browse files
Change signature of copy_and_cast_from_host_impl and copy_for_reshape_generic_impl to take packed shape/strides as const pointer
1 parent fea54b6 commit 9841f9e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

dpctl/tensor/libtensor/include/kernels/copy_and_cast.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ typedef void (*copy_and_cast_from_host_blocking_fn_ptr_t)(
551551
sycl::queue &,
552552
std::size_t,
553553
int,
554-
ssize_t *,
554+
const ssize_t *,
555555
const char *,
556556
ssize_t,
557557
ssize_t,
@@ -604,7 +604,7 @@ void copy_and_cast_from_host_impl(
604604
sycl::queue &q,
605605
std::size_t nelems,
606606
int nd,
607-
ssize_t *shape_and_strides,
607+
const ssize_t *shape_and_strides,
608608
const char *host_src_p,
609609
ssize_t src_offset,
610610
ssize_t src_min_nelem_offset,
@@ -797,12 +797,12 @@ class GenericCopyForReshapeFunctor
797797
// define function type
798798
typedef sycl::event (*copy_for_reshape_fn_ptr_t)(
799799
sycl::queue &,
800-
std::size_t, // num_elements
801-
int, // src_nd
802-
int, // dst_nd
803-
ssize_t *, // packed shapes and strides
804-
const char *, // src_data_ptr
805-
char *, // dst_data_ptr
800+
std::size_t, // num_elements
801+
int, // src_nd
802+
int, // dst_nd
803+
const ssize_t *, // packed shapes and strides
804+
const char *, // src_data_ptr
805+
char *, // dst_data_ptr
806806
const std::vector<sycl::event> &);
807807

808808
/*!
@@ -832,7 +832,7 @@ copy_for_reshape_generic_impl(sycl::queue &q,
832832
std::size_t nelems,
833833
int src_nd,
834834
int dst_nd,
835-
ssize_t *packed_shapes_and_strides,
835+
const ssize_t *packed_shapes_and_strides,
836836
const char *src_p,
837837
char *dst_p,
838838
const std::vector<sycl::event> &depends)

0 commit comments

Comments
 (0)