From cd4eb60a6d1629e025dba0a89365451cce16632e Mon Sep 17 00:00:00 2001 From: Yiannis Papadopoulos Date: Mon, 16 Sep 2024 16:38:42 -0400 Subject: [PATCH] Comments. --- runtime/hsa-runtime/core/runtime/amd_aie_agent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/hsa-runtime/core/runtime/amd_aie_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_aie_agent.cpp index f69a3e335..0529b7e4e 100644 --- a/runtime/hsa-runtime/core/runtime/amd_aie_agent.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_aie_agent.cpp @@ -303,6 +303,8 @@ hsa_status_t AieAgent::QueueCreate(size_t size, hsa_queue_type32_t queue_type, hsa_status_t AieAgent::Map(void *handle, void *va, size_t offset, size_t size, int fd, hsa_access_permission_t perms) { + // fd is ignored since it corresponds to the allocated buffer, not the dma-buf export. + // The driver will retrieve the correct fd from the handle. auto &driver = static_cast( core::Runtime::runtime_singleton_->AgentDriver(driver_type)); return driver.Map(*static_cast(handle), va, offset, size, perms);