Fix hipMemset3D test

Calculate the allocated size based on the width, height and depth.


[ROCm/clr commit: 99540373cf]
此提交包含在:
Wilkin Chau committed 2019-02-28 22:42:46 +00:00
1 父節點 089cb31bff
當前提交 19b361281a
1 file changed
+1 -1
+1 -1
查看文件
@@ -350,7 +350,7 @@ hipError_t ihipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t heigh
}
// hardcoded 128 bytes
*pitch = ((((int)width - 1) / 128) + 1) * 128;
const size_t sizeBytes = (*pitch) * height;
const size_t sizeBytes = (*pitch) * height * ((depth==0) ? 1 : depth);
auto ctx = ihipGetTlsDefaultCtx();