[llvm] [Offload][OpenMP] Keep user Numblocks requested value for RecordReplay (PR #228345)

Jan Patrick Lehr via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 02:25:30 PDT 2026


================
@@ -271,7 +271,7 @@ Error NativeRecordReplayTy::recordDescImpl(
 
   // Export minimum and maximum for allowed number of teams. If zero, it means
   // there was no restriction provided by the program.
-  uint32_t MinMaxBlocks = std::max(LaunchArgs.UserNumBlocks[0], uint32_t(0));
+  uint32_t MinMaxBlocks = LaunchArgs.KernelLaunchInfo.RequestedNumBlocks;
----------------
jplehr wrote:

Is this semantically the same or do we need to come up with a better fix?

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


More information about the llvm-commits mailing list