SWDEV-489364 - Free memory in hipAPIStreamDisable

Change-Id: I4f740fe803bcc4bbf57865173d92c567de65fdbb
This commit is contained in:
Aidan Belton-Schure committed 2025-03-06 04:07:21 -05:00
1 vanhempi 7ef404621e
commit 674ed47852
1 file changed
+6
@@ -68,4 +68,10 @@ TEST_CASE("Unit_hipStreamCreate_MultistreamBasicFunctionalities") {
HIP_CHECK(hipMemcpy(&x, xd, sizeof(float), hipMemcpyDeviceToHost));
HIP_CHECK(hipMemcpy(&y, yd, sizeof(float), hipMemcpyDeviceToHost));
REQUIRE(x == y);
HIP_CHECK(hipFree(yd));
HIP_CHECK(hipFree(xd));
for (int i = 0; i < NUM_STREAMS; ++i) {
HIP_CHECK(hipFree(data[i]));
}
}