Return hipSuccess when sizeBytes=0 in hipMemset

[ROCm/hip commit: 90f57d452a]
Esse commit está contido em:
Rahul Garg
2018-09-26 12:47:36 +05:30
commit 6d53af5a60
+2
Ver Arquivo
@@ -1543,6 +1543,8 @@ hipError_t ihipMemset(void* dst, int value, size_t sizeBytes, hipStream_t strea
{
hipError_t e = hipSuccess;
if (sizeBytes == 0) return e;
if (stream && (dst != NULL)) {
if(copyDataType == ihipMemsetDataTypeChar){
if ((sizeBytes & 0x3) == 0) {