SWDEV-369551 - invalid stream check in hipMemcpy

Change-Id: I6762af93cd566a38f7d04994b87a76e744b19043


[ROCm/clr commit: 76b0b4d635]
Tento commit je obsažen v:
pghafari
2023-01-17 10:54:14 -05:00
odevzdal Payam Ghafari
rodič de904d8716
revize 5fa035dbd4
+4
Zobrazit soubor
@@ -622,6 +622,10 @@ hipError_t hipMemcpyWithStream(void* dst, const void* src, size_t sizeBytes,
hipMemcpyKind kind, hipStream_t stream) {
HIP_INIT_API(hipMemcpyWithStream, dst, src, sizeBytes, kind, stream);
STREAM_CAPTURE(hipMemcpyAsync, stream, dst, src, sizeBytes, kind);
if (!hip::isValid(stream)) {
HIP_RETURN(hipErrorContextIsDestroyed);
}
amd::HostQueue* queue = hip::getQueue(stream);
if (queue == nullptr) {
HIP_RETURN(hipErrorInvalidValue);