[Openmp-commits] [llvm] [openmp] [Offload] Save jit image (PR #212384)

via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 31 18:06:19 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
----------------
jandrovins wrote:

Agreed and solved `:)`

https://github.com/llvm/llvm-project/pull/212384


More information about the Openmp-commits mailing list