From b76b1b626fd3c0c339215aa9ee2c05dbf0e1fcfc Mon Sep 17 00:00:00 2001 From: agunashe <86270081+agunashe@users.noreply.github.com> Date: Tue, 12 Jul 2022 14:28:50 -0700 Subject: [PATCH] SWDEV-327563 - hipHostRegister fix - develop to staging (#2794) [ROCm/hip commit: 444c0cd157638350537dcb5e9841cf2a199d6d47] --- projects/hip/tests/catch/unit/memory/hipHostRegister.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/tests/catch/unit/memory/hipHostRegister.cc b/projects/hip/tests/catch/unit/memory/hipHostRegister.cc index c2fa6ed009..417ab0857a 100644 --- a/projects/hip/tests/catch/unit/memory/hipHostRegister.cc +++ b/projects/hip/tests/catch/unit/memory/hipHostRegister.cc @@ -187,7 +187,7 @@ TEMPLATE_TEST_CASE("Unit_hipHostRegister_Negative", "", int, float, double) { REQUIRE(devMemAvail > 0); REQUIRE(hostMemFree > 0); - size_t memFree = std::min(devMemFree, hostMemFree); // which is the limiter cpu or gpu + size_t memFree = (std::min)(devMemFree, hostMemFree); // which is the limiter cpu or gpu SECTION("hipHostRegister Negative Test - invalid memory size") { HIP_CHECK_ERROR(hipHostRegister(hostPtr, memFree, 0), hipErrorInvalidValue);