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
والد
44b6b6813d
کامیت
9d8d35ae40
@@ -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)) {
|
||||
|
||||
مرجع در شماره جدید
Block a user