Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
Comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ypapadop-amd committed Sep 16, 2024
1 parent e8c499b commit cd4eb60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/hsa-runtime/core/runtime/amd_aie_agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<XdnaDriver &>(
core::Runtime::runtime_singleton_->AgentDriver(driver_type));
return driver.Map(*static_cast<uint32_t *>(handle), va, offset, size, perms);
Expand Down

0 comments on commit cd4eb60

Please sign in to comment.