aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2025-01-24 11:36:45 -0600
committerGitHub <noreply@github.com>2025-01-24 11:36:45 -0600
commit134401deea5e86d646bb99fab39c182cfa8e5292 (patch)
treed927a2c6c73fb89fe5ed9d1df0558fc55ec04e4c /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parentc025b96ef9bb364c79f73fc3afb45c851c2efb17 (diff)
downloadllvm-134401deea5e86d646bb99fab39c182cfa8e5292.zip
llvm-134401deea5e86d646bb99fab39c182cfa8e5292.tar.gz
llvm-134401deea5e86d646bb99fab39c182cfa8e5292.tar.bz2
[Offload] Move RPC server handling to a dedicated thread (#112988)
Summary: Handling the RPC server requires running through list of jobs that the device has requested to be done. Currently this is handled by the thread that does the waiting for the kernel to finish. However, this is not sound on NVIDIA architectures and only works for async launches in the OpenMP model that uses helper threads. However, we also don't want to have this thread doing work unnnecessarily. For this reason we track the execution of kernels and cause the thread to sleep via a condition variable (usually backed by some kind of futex or other intelligent sleeping mechanism) so that the thread will be idle while no kernels are running.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions