SWDEV-552141 - Fix handle/fd type passed from app to align with spec. (#759)

* SWDEV-552141 - Fix handle/fd type passed from app to align with spec.

* SWDEV-552141 - Fix handle/fd type passed from app to align with spec.
This commit is contained in:
Karthik Jayaprakash
2025-08-27 14:28:53 -04:00
committed by GitHub
parent 6bc1ea966f
commit 89070536c0
4 changed files with 29 additions and 23 deletions
@@ -2434,7 +2434,7 @@ bool Device::ImportShareableHSAHandle(void* osHandle, uint64_t* hsa_handle_ptr)
return false;
}
int dmabuf_fd = *(reinterpret_cast<int*>(osHandle));
int dmabuf_fd = static_cast<int>(reinterpret_cast<uintptr_t>(osHandle));
if ((hsa_status = hsa_amd_vmem_import_shareable_handle(dmabuf_fd, &hsa_vmem_handle)) !=
HSA_STATUS_SUCCESS) {
LogPrintfError("Failed hsa_amd_vmem_import_shareable_handle with status: %d \n", hsa_status);