Skip to content

Commit af5d723

Browse files
committed
removed commented-out code, oversight
Signed-off-by: Chris Perkins <[email protected]>
1 parent ef717fd commit af5d723

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sycl/source/detail/memory_manager.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,6 @@ void copyD2D(SYCLMemObjI *SYCLMemObj, RT::PiMem SrcMem, QueueImplPtr SrcQueue,
460460
Queue, SrcMem, DstMem, SrcXOffBytes, DstXOffBytes, SrcARWidthBytes,
461461
DepEvents.size(), DepEvents.data(), &OutEvent);
462462
} else {
463-
// size_t SrcRowPitch = (1 == DimSrc) ? 0 : SrcSzWidthBytes;
464-
// size_t SrcSlicePitch = (3 == DimSrc) ? SrcSzWidthBytes *
465-
// SrcSize[SrcPos.y_term] : 0; size_t DstRowPitch = (1 == DimDst) ? 0 :
466-
// DstSzWidthBytes; size_t DstSlicePitch = (3 == DimDst) ? DstSzWidthBytes
467-
// * DstSize[DstPos.y_term] : 0;
468-
469463
// passing 0 for pitches not allowed. Because clEnqueueCopyBufferRect will
470464
// calculate both src and dest pitch using region[0], which is not correct
471465
// if src and dest are not the same size.

0 commit comments

Comments
 (0)