Merge pull request #521 from gargrahul/temp_fixmemcpy2dasync_trsmissue

Use memcpy kernel for all pinned memory cases in hipMemcpy2DAsync
This commit is contained in:
Maneesh Gupta
2018-06-18 09:34:02 +05:30
committed by GitHub
+4 -1
View File
@@ -1680,9 +1680,12 @@ hipError_t hipMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t sp
actualDest = pinnedPtr;
}
}
#if 0
if((width == dpitch) && (width == spitch)) {
hip_internal::memcpyAsync(dst, src, width*height, kind, stream);
} else {
} else
#endif
{
try {
if(!isLocked){
for (int i = 0; i < height; ++i)