Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc] Explicitly pin memory for the HSA memory transfer (llvm#73973)
Summary: This portion of code handles mapping the RPC client memory over to the device. HSA copies need to be between two slices of memory that HSA has allocated. Previously we used coarse-grained memory to act as the host source. However, the support for this varies depending on the kernel and version and should not be relied upon. This patch changes that handling to use the `hsa_amd_memory_lock` API to explicitly pin memory to a location sufficient for a DMA transfer to the GPU.
- Loading branch information