Stream thread-safe checkpoint.

Moving data structures to critical / protected section.


[ROCm/clr commit: 6cab7862ae]
Este commit está contenido en:
Ben Sander
2016-03-28 09:46:40 -05:00
padre 03b0976e54
commit 96412bdea2
Se han modificado 5 ficheros con 171 adiciones y 129 borrados
+2 -5
Ver fichero
@@ -307,17 +307,14 @@ hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind
hipError_t e = hipSuccess;
try {
stream->copySync(dst, src, sizeBytes, kind);
stream->locked_copySync(dst, src, sizeBytes, kind);
}
catch (ihipException ex) {
e = ex._code;
}
if (HIP_LAUNCH_BLOCKING) {
tprintf(DB_SYNC, "LAUNCH_BLOCKING for completion of hipMemcpy\n");
stream->wait();
}
return ihipLogStatus(e);
}