From 66bee403c7123a101239d7aed24cf090d29cf74f Mon Sep 17 00:00:00 2001 From: Julia Jiang Date: Mon, 3 Feb 2025 15:04:14 -0500 Subject: [PATCH] SWDEV - 508961 - Update requestedHandleType in hip-tests repos Change-Id: I5d8a1ae1d36ecdf2786dbd8a6e83c3692592efb6 [ROCm/hip-tests commit: 6b5a5dde289f2263134403a8de7023593dad0872] --- .../hipGetProcAddressVmmApis.cc | 4 ++-- .../hipMemExportToShareableHandle.cc | 4 ++-- .../hipMemImportFromShareableHandle.cc | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipGetProcAddressVmmApis.cc b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipGetProcAddressVmmApis.cc index fe664bc3e7..45acf33109 100644 --- a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipGetProcAddressVmmApis.cc +++ b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipGetProcAddressVmmApis.cc @@ -182,7 +182,7 @@ TEST_CASE("Unit_hipGetProcAddress_VMM") { hipMemAllocationProp prop{}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypeNone; + prop.requestedHandleTypes = hipMemHandleTypeNone; prop.location.type = hipMemLocationTypeDevice; prop.location.id = 0; @@ -238,7 +238,7 @@ TEST_CASE("Unit_hipGetProcAddress_VMM") { HIP_CHECK(dyn_hipMemGetAllocationPropertiesFromHandle_ptr( &requiredProp, handle)); REQUIRE(requiredProp.type == hipMemAllocationTypePinned); - REQUIRE(requiredProp.requestedHandleType == hipMemHandleTypeNone); + REQUIRE(requiredProp.requestedHandleTypes == hipMemHandleTypeNone); REQUIRE(requiredProp.location.type == hipMemLocationTypeDevice); REQUIRE(requiredProp.location.id == 0); diff --git a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemExportToShareableHandle.cc b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemExportToShareableHandle.cc index dd6c19e11b..e7a859ec7d 100644 --- a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemExportToShareableHandle.cc +++ b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemExportToShareableHandle.cc @@ -54,7 +54,7 @@ TEST_CASE("Unit_hipMemExportToShareableHandle_Positive_Basic") { hipMemAllocationProp prop = {}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypePosixFileDescriptor; + prop.requestedHandleTypes = hipMemHandleTypePosixFileDescriptor; prop.location.type = hipMemLocationTypeDevice; prop.location.id = device; @@ -93,7 +93,7 @@ TEST_CASE("Unit_hipMemExportToShareableHandle_Negative_Parameters") { hipMemAllocationProp prop = {}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypePosixFileDescriptor; + prop.requestedHandleTypes = hipMemHandleTypePosixFileDescriptor; prop.location.type = hipMemLocationTypeDevice; prop.location.id = device; diff --git a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc index be379b7153..72670d7755 100644 --- a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc +++ b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc @@ -66,7 +66,7 @@ TEST_CASE("Unit_hipMemImportFromShareableHandle_Positive_Basic") { hipMemAllocationProp prop = {}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypePosixFileDescriptor; + prop.requestedHandleTypes = hipMemHandleTypePosixFileDescriptor; prop.location.type = hipMemLocationTypeDevice; prop.location.id = device; @@ -105,7 +105,7 @@ TEST_CASE("Unit_hipMemImportFromShareableHandle_Negative_Parameters") { hipMemAllocationProp prop = {}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypePosixFileDescriptor; + prop.requestedHandleTypes = hipMemHandleTypePosixFileDescriptor; prop.location.type = hipMemLocationTypeDevice; prop.location.id = device; @@ -224,7 +224,7 @@ TEST_CASE("Unit_hipMemImportFromShareableHandle_MulProc_ChldUseHdl") { // Set property hipMemAllocationProp prop = {}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypePosixFileDescriptor; + prop.requestedHandleTypes = hipMemHandleTypePosixFileDescriptor; prop.location.type = hipMemLocationTypeDevice; prop.location.id = device; // Set Granularity of the VMM memory @@ -349,7 +349,7 @@ TEST_CASE("Unit_hipMemImportFromShareableHandle_MulProc_ParntChldUseHdl") { // Set property hipMemAllocationProp prop = {}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypePosixFileDescriptor; + prop.requestedHandleTypes = hipMemHandleTypePosixFileDescriptor; prop.location.type = hipMemLocationTypeDevice; prop.location.id = device; // Set Granularity of the VMM memory @@ -508,7 +508,7 @@ TEST_CASE("Unit_hipMemImportFromShareableHandle_MulProc_GrndChldUseHdl") { // Set property hipMemAllocationProp prop = {}; prop.type = hipMemAllocationTypePinned; - prop.requestedHandleType = hipMemHandleTypePosixFileDescriptor; + prop.requestedHandleTypes = hipMemHandleTypePosixFileDescriptor; prop.location.type = hipMemLocationTypeDevice; prop.location.id = device; // Set Granularity of the VMM memory