SWDEV-549680 - Fix memory leaks in stream tests (#629)

このコミットが含まれているのは:
Satyanvesh Dittakavi authored and GitHub committed 2025-09-03 20:33:49 +05:30
1 親 5ac738150a
コミット 86792d8562
3ファイル変更
+8 -2

検索条件に一致するファイルはありません

+6
ファイルの表示
@@ -768,6 +768,8 @@ template <typename T> void TestForMultipleStreamWithPriority(void) {
for (int i = 0; i < LOW_PRIORITY_STREAMCOUNT; i++) {
if (enable_priority_low) {
HIP_CHECK(hipFree(src_d_low[i]));
HIP_CHECK(hipFree(dst_d_low[i]));
HIP_CHECK(hipEventDestroy(event_start_low[i]));
HIP_CHECK(hipEventDestroy(event_end_low[i]));
}
@@ -777,6 +779,8 @@ template <typename T> void TestForMultipleStreamWithPriority(void) {
for (int i = 0; i < NORMAL_PRIORITY_STREAMCOUNT; i++) {
if (enable_priority_normal) {
HIP_CHECK(hipFree(src_d_normal[i]));
HIP_CHECK(hipFree(dst_d_normal[i]));
HIP_CHECK(hipEventDestroy(event_start_normal[i]));
HIP_CHECK(hipEventDestroy(event_end_normal[i]));
}
@@ -786,6 +790,8 @@ template <typename T> void TestForMultipleStreamWithPriority(void) {
for (int i = 0; i < HIGH_PRIORITY_STREAMCOUNT; i++) {
if (enable_priority_high) {
HIP_CHECK(hipFree(src_d_high[i]));
HIP_CHECK(hipFree(dst_d_high[i]));
HIP_CHECK(hipEventDestroy(event_start_high[i]));
HIP_CHECK(hipEventDestroy(event_end_high[i]));
}