Skip to content

Commit be09527

Browse files
committed
Keep extra memcopy only for the result array
1 parent b326450 commit be09527

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/backend/kernels/dpnp_krnl_indexing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ DPCTLSyclEventRef dpnp_choose_c(DPCTLSyclQueueRef q_ref,
6060

6161
sycl::queue q = *(reinterpret_cast<sycl::queue *>(q_ref));
6262

63-
DPNPC_ptr_adapter<_DataType1> input1_ptr(q_ref, array1_in, size, true);
63+
DPNPC_ptr_adapter<_DataType1> input1_ptr(q_ref, array1_in, size);
6464
_DataType1 *array_in = input1_ptr.get_ptr();
6565

66-
DPNPC_ptr_adapter<_DataType2 *> choices_ptr(q_ref, choices1, choices_size, true);
66+
DPNPC_ptr_adapter<_DataType2 *> choices_ptr(q_ref, choices1, choices_size);
6767
_DataType2 **choices = choices_ptr.get_ptr();
6868

6969
for (size_t i = 0; i < choices_size; ++i) {
7070
DPNPC_ptr_adapter<_DataType2> choice_ptr(q_ref, choices[i],
71-
choice_size, true);
71+
choice_size);
7272
choices[i] = choice_ptr.get_ptr();
7373
}
7474

0 commit comments

Comments
 (0)