SWDEV-545476 - memleak valgrind fixes for atomics and compiler (#470)
fixes SWDEV-545476 and SWDEV-545493
This commit is contained in:
committed by
GitHub
vanhempi
94bb129ac1
commit
39fd515cd2
@@ -172,6 +172,7 @@ TEMPLATE_TEST_CASE("Unit_unsafe_atomic_add_half_and_bfloat", "", __half2, __hip_
|
|||||||
|
|
||||||
REQUIRE(hout.x == 32.0f);
|
REQUIRE(hout.x == 32.0f);
|
||||||
REQUIRE(hout.y == 64.0f);
|
REQUIRE(hout.y == 64.0f);
|
||||||
|
HIP_CHECK(hipFree(out));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -78,6 +78,10 @@ TEST_CASE("Unit_test_compressed_codeobject") {
|
|||||||
HIP_CHECK(hipErrorUnknown);
|
HIP_CHECK(hipErrorUnknown);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
HIP_CHECK(hipFree(A_d));
|
||||||
|
HIP_CHECK(hipFree(C_d));
|
||||||
|
free(A_h);
|
||||||
|
free(C_h);
|
||||||
printf("PASSED!\n");
|
printf("PASSED!\n");
|
||||||
REQUIRE(true);
|
REQUIRE(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Viittaa uudesa ongelmassa
Block a user