[llvm] [Offload][OpenMP] Keep user Numblocks requested value for RecordReplay (PR #228345)
Alex Duran via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 02:35:35 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;
----------------
adurang wrote:
the thing is this std::max wasn't doing anything as uint cannot be negative.
https://github.com/llvm/llvm-project/pull/228345
More information about the llvm-commits
mailing list