@@ -446,11 +446,11 @@ class __SYCL_EXPORT queue {
446
446
// / if either \param Dest or \param Src is nullptr. The behavior is undefined
447
447
// / if any of the pointer parameters is invalid.
448
448
// /
449
- // / \param Dest is a USM pointer to the destination memory.
450
449
// / \param Src is a USM pointer to the source memory.
450
+ // / \param Dest is a USM pointer to the destination memory.
451
451
// / \param Count is a number of elements of type T to copy.
452
452
// / \return an event representing copy operation.
453
- template <typename T> event copy (T *Dest, const T *Src , size_t Count) {
453
+ template <typename T> event copy (const T *Src, T *Dest , size_t Count) {
454
454
return this ->memcpy (Dest, Src, Count * sizeof (T));
455
455
}
456
456
@@ -460,13 +460,13 @@ class __SYCL_EXPORT queue {
460
460
// / if either \param Dest or \param Src is nullptr. The behavior is undefined
461
461
// / if any of the pointer parameters is invalid.
462
462
// /
463
- // / \param Dest is a USM pointer to the destination memory.
464
463
// / \param Src is a USM pointer to the source memory.
464
+ // / \param Dest is a USM pointer to the destination memory.
465
465
// / \param Count is a number of elements of type T to copy.
466
466
// / \param DepEvent is an event that specifies the kernel dependencies.
467
467
// / \return an event representing copy operation.
468
468
template <typename T>
469
- event copy (T *Dest, const T *Src , size_t Count, event DepEvent) {
469
+ event copy (const T *Src, T *Dest , size_t Count, event DepEvent) {
470
470
return this ->memcpy (Dest, Src, Count * sizeof (T), DepEvent);
471
471
}
472
472
@@ -476,13 +476,13 @@ class __SYCL_EXPORT queue {
476
476
// / if either \param Dest or \param Src is nullptr. The behavior is undefined
477
477
// / if any of the pointer parameters is invalid.
478
478
// /
479
- // / \param Dest is a USM pointer to the destination memory.
480
479
// / \param Src is a USM pointer to the source memory.
480
+ // / \param Dest is a USM pointer to the destination memory.
481
481
// / \param Count is a number of elements of type T to copy.
482
482
// / \param DepEvents is a vector of events that specifies the kernel
483
483
// / \return an event representing copy operation.
484
484
template <typename T>
485
- event copy (T *Dest, const T *Src , size_t Count,
485
+ event copy (const T *Src, T *Dest , size_t Count,
486
486
const vector_class<event> &DepEvents) {
487
487
return this ->memcpy (Dest, Src, Count * sizeof (T), DepEvents);
488
488
}
0 commit comments