SWDEV-507960 - Return with error code if stream of type hipStreamLegacy is being attempted to destroy
Change-Id: Iee7ada6a5a905b44360a7e4049fc8b1a45c80db0
[ROCm/clr commit: 9d8d35ae40]
This commit is contained in:
committed by
Sourabh Betigeri
orang tua
161d590405
melakukan
c95bb38b2b
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user