SWDEV-327563 - hipHostRegister fix - develop to staging (#2794)

Tá an tiomantas seo le fáil i:
agunashe údaraithe agus GitHub tiomanta 2022-07-12 14:28:50 -07:00
1 tuismitheoir 844cff8d6b
tiomantas eb7422c19f
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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);