Skip to content

Commit 95cdcf1

Browse files
authored
Merge branch 'develop' into users/sluzynsk-amd/SWDEV-546322-3
2 parents 74413ae + 9d32bad commit 95cdcf1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

projects/clr/hipamd/include/hip/amd_detail/hip_prof_str.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11610,7 +11610,7 @@ static inline const char* hipApiString(hip_api_id_t id, const hip_api_data_t* da
1161011610
oss << ", mode="; roctracer::hip_support::detail::operator<<(oss, data->args.hipStreamBeginCaptureToGraph.mode);
1161111611
oss << ")";
1161211612
break;
11613-
case HIP_API_ID_hipStreamCopyAttributes:
11613+
case HIP_API_ID_hipStreamCopyAttributes:
1161411614
oss << "hipStreamCopyAttributes(";
1161511615
oss << "dst="; roctracer::hip_support::detail::operator<<(oss, data->args.hipStreamCopyAttributes.dst);
1161611616
oss << ", src="; roctracer::hip_support::detail::operator<<(oss, data->args.hipStreamCopyAttributes.src);

projects/clr/rocclr/device/rocm/rocblit.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,8 @@ bool DmaBlitManager::hsaCopyStagedOrPinned(const_address hostSrc, address hostDs
729729
address dst = hostDst + copyOffset;
730730
status = rocrCopyBuffer(dst, dstAgent, stagingBuffer, srcAgent, copysize, copyMetadata);
731731
if (!status) {
732+
// Release Pinned Memory back to pool if any
733+
releaseBuffer(outBuffer);
732734
break;
733735
}
734736
} else { // D2H Path
@@ -745,6 +747,8 @@ bool DmaBlitManager::hsaCopyStagedOrPinned(const_address hostSrc, address hostDs
745747
memcpy(hostDst + copyOffset, stagingBuffer, copysize);
746748
}
747749
} else {
750+
// Release Pinned Memory back to pool if any
751+
releaseBuffer(outBuffer);
748752
break;
749753
}
750754
}

0 commit comments

Comments
 (0)