Fix merge issues in memory unit tests (#123)

[ROCm/hip-tests commit: 75bb521e18]
This commit is contained in:
Maneesh Gupta
2023-01-17 21:54:27 +05:30
committed by GitHub
parent 89cf6ce4bb
commit f6537beee3
6 changed files with 7 additions and 106 deletions
@@ -116,11 +116,11 @@ TEST_CASE("Unit_hipMemPrefetchAsync_Rounding_Behavior") {
HIP_CHECK(hipMemRangeGetAttribute(&attribute, sizeof(attribute),
hipMemRangeAttributeLastPrefetchLocation,
reinterpret_cast<void*>(base), rounded_up));
REQUIRE(device == attribute);
REQUIRE(device == static_cast<int>(attribute));
HIP_CHECK(hipMemRangeGetAttribute(&attribute, sizeof(attribute),
hipMemRangeAttributeLastPrefetchLocation, alloc.ptr(),
3 * kPageSize));
REQUIRE((rounded_up == 3 * kPageSize ? device : hipInvalidDeviceId) == attribute);
REQUIRE((rounded_up == 3 * kPageSize ? device : hipInvalidDeviceId) == static_cast<int>(attribute));
}
TEST_CASE("Unit_hipMemPrefetchAsync_Negative_Parameters") {