SWDEV-430048 - hipMemcpy2D should return success for zero sized arrays

- This matches the CUDA behavior
- The pitch and width checks removed are already covered in ihipmemcpy2D

Change-Id: I03a6921a78b5d89723830d8dde5865fdc6db0379
Este cometimento está contido em:
Satyanvesh Dittakavi cometeu 2023-11-02 00:40:08 -04:00
1 ascendente b0c9fb84fd
cometimento 6d6465cb96
1 ficheiro modificado
-6
-6
Ver ficheiro
@@ -2411,12 +2411,6 @@ hipError_t hipMemcpy2D_common(void* dst, size_t dpitch, const void* src, size_t
if ((validateParams = hipMemcpy2DValidateParams(kind,stream)) != hipSuccess) {
return validateParams;
}
if ((validateSrc = hipMemcpy2DValidateBuffer(src,spitch,width)) != hipSuccess) {
return validateSrc;
}
if ((validateDst = hipMemcpy2DValidateBuffer(dst,dpitch, width)) != hipSuccess) {
return validateDst;
}
return ihipMemcpy2D(dst, dpitch, src, spitch, width, height, kind, stream, isAsync);
}