Merge pull request #945 from wkwchau/hipMemset3D_fix

Fix hipMemset3D test

[ROCm/hip commit: d28c13ed69]
这个提交包含在:
Maneesh Gupta 编写, GitHub 于 2019-03-01 21:18:12 +05:30 提交
2 父节点 87b3859ec2 4a0d68ba3f
当前提交 91f6e6b1e8
1 个文件已更改
+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();