refactor(primbench): shared benchmark types #9093
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 215 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9093"
general
weight: 0.35
Naraenda
Motivation
Right now every benchmark queues specializations based on a hardcoded list of types and values.
This is the reason why a lot of rocPRIM's benchmarks aren't benchmarking as many types as they are supposed to, including custom types.
Technical Details
Provides
constexpr static void queue_type(primbench::executor& executor, Functor&& f)which can be used to easily reuse and combine preset type categories.For example:
Calls
CREATE_TYPED_BENCHMARKwith all signed integer types, 128-bit integer types, and type_custom_i64_i64.This noticeably reduces repetition, and allows for easier addition of additional types. For example, in the future, this could be switched to T
ype_Category::arithmetic, which would benchmark all floating-point and integer types with very little effort.A few benchmarks were left unchanged as these either:
Test Plan
Build and run all benchmarks with --dry. Compare what benchmarks were runs.
Test Result
The set of run benchmarks are identical.
Submission Checklist