[Openmp-commits] [llvm] [openmp] [Offload] Save jit image (PR #212384)
Kevin Sala Penades via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 31 13:48:29 PDT 2026
================
@@ -1253,6 +1253,22 @@ others:
(default 1).
* ``--num-threads=N``: Overrides the number of threads per team.
* ``--num-teams=N``: Overrides the number of teams.
+* ``--load-bitcode``: Loads the recorded IR bitcode image instead of the
+ recorded device image. The bitcode is JIT compiled for the selected device.
+* ``--save-jit-image``: Requires ``--load-bitcode`` and saves the resulting
+ JIT-compiled device image alongside the recorded bitcode as an ``.image``
+ file.
+
+For example, use the following command after modifying a recorded bitcode
+image. It JIT compiles the bitcode once, saves the executable device image, and
+replays the kernel:
+
+.. code-block:: console
+
+ $ llvm-omp-kernel-replay --load-bitcode --save-jit-image records/5681756204876336171_6652394454608725381.json
----------------
kevinsala wrote:
I honestly don't think we should add the option `--save-jit-image`. As far as I know, it is not directly related to the replay tool and you can set the environment variable directly when replaying. That's what you would do if you want to change JIT related behavior. I would prefer to not mix both mechanism to this level.
https://github.com/llvm/llvm-project/pull/212384
More information about the Openmp-commits
mailing list