SWDEV-489364 - Free memory in hipAPIStreamDisable
Change-Id: I4f740fe803bcc4bbf57865173d92c567de65fdbb
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user