SWDEV-489364 - Free memory in hipAPIStreamDisable

Change-Id: I4f740fe803bcc4bbf57865173d92c567de65fdbb
This commit is contained in:
Aidan Belton-Schure
2024-10-04 09:07:58 +00:00
parent 7ef404621e
commit 674ed47852
+6
View File
@@ -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]));
}
}