Skip to content

BenchMarking for Codegen and CodegenNoGrad() - #282

Closed
abhigyan-ach wants to merge 1 commit into
root-project:masterfrom
abhigyan-ach:abhi_branch
Closed

BenchMarking for Codegen and CodegenNoGrad()#282
abhigyan-ach wants to merge 1 commit into
root-project:masterfrom
abhigyan-ach:abhi_branch

Conversation

@abhigyan-ach

Copy link
Copy Markdown

Added functionality to test benchmarks for codegen and codegen_no_grad evaluation backends. There are currently some issues with the benchmarks in benchRooFitBackEnds.cxx, RooFitUnbinnedBenchmarks.cxx and RooFitBinnedBenchMarks.
@guitargeek

@vgvassilev

Copy link
Copy Markdown
Member

I was wondering what is the fate of this PR?

guitargeek added a commit that referenced this pull request Sep 4, 2026
Benchmark the automatic-differentiation "codegen" evaluation backend and
its "codegen_no_grad" variant (numeric gradient) alongside the existing
Legacy, CPU, and CUDA configurations.

The GausXS model gets no codegen variants because its normalization
requires a multi-dimensional numeric integral that the codegen backend
does not support. The BDecay benchmarks in RooFitUnBinnedBenchmarks.cxx
are also left unchanged, since RooBMixDecay, RooGaussModel, and
RooAddModel have no codegen translate functions yet.

This supersedes the corresponding part of PR #282.
@guitargeek

Copy link
Copy Markdown
Contributor

Thank you @abhigyan-ach for this contribution, and apologies that it went unanswered for so long!

Benchmarking the codegen (AD) backend in these fit benchmarks was indeed the idea, and it is now implemented in #310, which adds working Codegen/CodegenNoGrad configurations to benchRooFitBackends.cxx. The issues you ran into back then were real: several of the models in these suites are not supported by the codegen backend (this is why the enum values ended up commented out here). In particular, none of the BDecay benchmarks in RooFitUnBinnedBenchmarks.cxx work with it even today.

Closing in favor of #310. Thanks again for pushing on the AD benchmarking front early on!

@guitargeek guitargeek closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants