Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds primitive support for benchmarking Clad using ADBench.
Steps to enable benchmarking Clad using ADBench.
run-all.ps
using[Tool]::new
function. We may want to add multiple variants of Clad for benchmarking Clad with TBR enabled/disabled and so on. We can specify which benchmarks we want to run using Clad.src/cpp/modules
. This directory creates a library of the same name as the name of the tool added in step (1). This library should contain routines for running the derivative code of the benchmarks.ITest<BenchmarkInput, BenchmarkOutput>
, whereBenchmark
= name of the benchmark. We need to implement a class that derives from this driver class for each benchmark we wish to support. The framework calls the member functionscalculate_jacobian
andcalculate_objective
of the driver class for benchmarking. Thecalculate_jacobian
should compute jacobian using the clad-generated codes for the particularbenchmark.
This PR adds support for benchmarking
BA
andGMM
benchmarks with Clad.