[all-commits] [llvm/llvm-project] 0584e6: [libc] Explicitly pin memory for the HSA memory tr...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Thu Nov 30 11:47:08 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0584e6c1669dbfc6252f5b069e2a895389660120
https://github.com/llvm/llvm-project/commit/0584e6c1669dbfc6252f5b069e2a895389660120
Author: Joseph Huber <huberjn at outlook.com>
Date: 2023-11-30 (Thu, 30 Nov 2023)
Changed paths:
M libc/utils/gpu/loader/amdgpu/Loader.cpp
Log Message:
-----------
[libc] Explicitly pin memory for the HSA memory transfer (#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.
More information about the All-commits
mailing list