SWDEV-507960 - Return with error code if stream of type hipStreamLegacy is being attempted to destroy

Change-Id: Iee7ada6a5a905b44360a7e4049fc8b1a45c80db0
This commit is contained in:
Sourabh Betigeri
2025-01-09 16:33:16 -08:00
کامیت شده توسط Sourabh Betigeri
والد 44b6b6813d
کامیت 9d8d35ae40
+1 -1
مشاهده پرونده
@@ -394,7 +394,7 @@ hipError_t hipStreamDestroy(hipStream_t stream) {
if (stream == nullptr) {
HIP_RETURN(hipErrorInvalidHandle);
}
if (stream == hipStreamPerThread) {
if (stream == hipStreamPerThread || stream == hipStreamLegacy) {
HIP_RETURN(hipErrorInvalidResourceHandle);
}
if (!hip::isValid(stream)) {