Merge pull request #521 from gargrahul/temp_fixmemcpy2dasync_trsmissue

Use memcpy kernel for all pinned memory cases in hipMemcpy2DAsync

[ROCm/hip commit: 3d8317a50d]
Ta zmiana jest zawarta w:
Maneesh Gupta authored and GitHub committed 2018-06-18 09:34:02 +05:30
złożenie 411414acc5
Plik 1 zmieniony
+4 -1
+4 -1
Wyświetl plik
@@ -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)