SWDEV-507960 - Return with error code if stream of type hipStreamLegacy is being attempted to destroy
Change-Id: Iee7ada6a5a905b44360a7e4049fc8b1a45c80db0
[ROCm/clr commit: 9d8d35ae40]
Этот коммит содержится в:
коммит произвёл
Sourabh Betigeri
родитель
161d590405
Коммит
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)) {
|
||||
|
||||
Ссылка в новой задаче
Block a user