Skip to content

Commit

Permalink
SWDEV-507960 - Return with error code if stream of type hipStreamLega…
Browse files Browse the repository at this point in the history
…cy is being attempted to destroy

Change-Id: Iee7ada6a5a905b44360a7e4049fc8b1a45c80db0
  • Loading branch information
Sourabh Betigeri authored and Sourabh Betigeri committed Jan 13, 2025
1 parent 44b6b68 commit 9d8d35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hipamd/src/hip_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9d8d35a

Please sign in to comment.