Add Simple Check to Prevent npasses>1 When Caliper Enabled#648
Add Simple Check to Prevent npasses>1 When Caliper Enabled#648
npasses>1 When Caliper Enabled#648Conversation
tdrwenski
left a comment
There was a problem hiding this comment.
Seems good to me as a temporary fix to alert users!
I am okay with either solution as long as you can still get back the info about how many reps and passes were run. I don't think 10 reps and 2 passes is exactly equivalent to 20 reps and 1 pass so would be good to have that info.
|
This seems like a reasonably simple stop-gap for the moment. |
You are correct, they are not equivalent. There is different caching behavior for those two options. |
|
@rhornung67 Shall we merge? |
|
@MrBurmark yes, go for it. |
Summary
src/common/RunParams.cppThis PR addresses a known issue (#563) when using
--npasses>1, where seemingly "incorrect" values will be propagated into the caliper files.@MrBurmark and I discussed something like multiplying reps by npasses. Another option is we could rename reps to be reps/pass. However, @MrBurmark during this discussion, I forgot the issue of the other attributes being incorrectly set on the subsequent passes after the first pass. So the solution cannot be this simple.
To solve this:
variant-tuning-passnum.calilikeBase_Seq-1.cali. I think this would be a solution more befitting of Caliper's model than the first option.This is just a temporary mechanism to prevent users from generating bad data by accident, until I implement a better solution, which I'm not sure will land before the
2025.12.0release, so I am making this PR. This issue can also be really difficult for a user to catch, so it does need to be addressed in some form.I tested some cases, which show what a user will see: