SWDEV-338427 - fix test hang issue (#2690)

destroy stream before exit

[ROCm/hip commit: 5e0ab5c98b]
Bu işleme şunda yer alıyor:
haoyuan2
2022-05-23 21:52:42 -07:00
işlemeyi yapan: GitHub
ebeveyn 7b9d86f6c8
işleme 7989d62ccd
+4 -1
Dosyayı Görüntüle
@@ -1,5 +1,5 @@
/*
Copyright (c) 2021 - present Advanced Micro Devices, Inc. All rights reserved.
Copyright (c) 2022 - present Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@@ -124,6 +124,7 @@ TEMPLATE_TEST_CASE("Unit_hipMemcpyAsync_KernelLaunch", "", int, float,
HIP_CHECK(hipMemcpyAsync(C_h, C_d, Nbytes, hipMemcpyDeviceToHost, stream));
HIP_CHECK(hipStreamSynchronize(stream));
HIP_CHECK(hipStreamDestroy(stream));
HipTest::checkVectorADD(A_h, B_h, C_h, NUM_ELM);
@@ -239,6 +240,8 @@ TEMPLATE_TEST_CASE("Unit_hipMemcpyAsync_H2H-H2D-D2H-H2PinMem", "", char, int,
}
}
HIP_CHECK(hipStreamDestroy(stream));
HipTest::freeArrays<TestType>(A_d, B_d, nullptr, A_h, B_h, nullptr, false);
HipTest::freeArrays<TestType>(nullptr, nullptr, nullptr, A_Ph,
B_Ph, nullptr, true);