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
Dieser Commit ist enthalten in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren