aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorGiorgis Georgakoudis <georgakoudis1@llnl.gov>2023-01-17 15:35:44 -0800
committerGiorgis Georgakoudis <georgakoudis1@llnl.gov>2023-01-17 16:29:03 -0800
commit94c772dc923a63abc744c011db51cecfe80cf093 (patch)
tree88d21e55a4bbed85971845b99384faa628f6d87c /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent9bd69ae8f77e6339733ab8ef7783b5c73cffdb98 (diff)
downloadllvm-94c772dc923a63abc744c011db51cecfe80cf093.zip
llvm-94c772dc923a63abc744c011db51cecfe80cf093.tar.gz
llvm-94c772dc923a63abc744c011db51cecfe80cf093.tar.bz2
[OpenMP] Support kernel record and replay
This patch adds functionality for recording and replaying the execution of OpenMP offload kernels, based on an original implementation by Steve Rangel. The patch extends libomptarget to extract a json description of the kernel, the device image binary, and a device memory snapshot before and after the execution of a recorded kernel. Kernel recording/replaying in libomptarget is controlled through env vars (LIBOMPTARGET_RECORD, LIBOMPTARGET_REPLAY). It provides a tool, llvm-omp-kernel-replay, for replaying a kernel using the extracted information with the ability to verify replayed execution using the post-execution device memory snapshot, also supporting changing the number of teams/threads for replaying. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D138931
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions