From cfbb2230ea1d43a1d867c98535f105a4d15679d6 Mon Sep 17 00:00:00 2001 From: marandje Date: Thu, 30 Oct 2025 15:06:26 +0100 Subject: [PATCH] SWDEV-491296 - Fix Unit_hipMemImportFromShareableHandle_Capture (#1564) --- .../hipMemImportFromShareableHandle.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc index 6af2640862..a69fdfdc3c 100644 --- a/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc +++ b/projects/hip-tests/catch/unit/virtualMemoryManagement/hipMemImportFromShareableHandle.cc @@ -576,8 +576,9 @@ TEST_CASE("Unit_hipMemImportFromShareableHandle_Capture") { GENERATE_CAPTURE(); BEGIN_CAPTURE(stream); - HIP_CHECK(hipMemImportFromShareableHandle(&imported_handle, &shareable_handle, - hipMemHandleTypePosixFileDescriptor)); + HIP_CHECK(hipMemImportFromShareableHandle(&imported_handle, + reinterpret_cast(static_cast(shareable_handle)), + hipMemHandleTypePosixFileDescriptor)); END_CAPTURE(stream); HIP_CHECK(hipStreamDestroy(stream));