SWDEV-515519 - Synchronize after mem pool trim (#89)

This commit is contained in:
Brzak, Branislav
2025-04-30 16:09:15 +02:00
committed by GitHub
parent 1b60d60f5a
commit 3f30d6d8ea
3 changed files with 6 additions and 4 deletions
@@ -132,7 +132,10 @@ TEST_CASE("Unit_hipDeviceGetGraphMemAttribute_Positive_DoubleMemory") {
HIP_CHECK(hipGraphExecDestroy(graph_exec1));
HIP_CHECK(hipGraphExecDestroy(graph_exec2));
HIP_CHECK(hipDeviceGraphMemTrim(0));
HIP_CHECK(hipStreamSynchronize(0));
checkGraphMemAttribute(0, 2 * element_count * sizeof(int));
ResetGraphMemAttribute();
}
@@ -170,7 +173,10 @@ TEST_CASE("Unit_hipDeviceGetGraphMemAttribute_Positive_ReuseMemory") {
HIP_CHECK(hipGraphExecDestroy(graph_exec1));
HIP_CHECK(hipGraphExecDestroy(graph_exec2));
HIP_CHECK(hipDeviceGraphMemTrim(0));
HIP_CHECK(hipStreamSynchronize(0));
checkGraphMemAttribute(0, element_count * sizeof(int));
ResetGraphMemAttribute();
#endif