Closed vaithak closed 4 weeks ago
clang-tidy review says "All clean, LGTM! :+1:"
cc: @guitargeek. I have tested this with the atlas likelihood benchmark code, it now works after removing the auxiliary arrays. The runtime results have also improved because of this.
The failed tests are due to the CUDA download server not being available.
The issue was that while calling pullbacks, we don't maintain non-differentiable arguments. @PetroZarytskyi had fixed this for most of the cases here: https://github.com/vgvassilev/clad/pull/802, but it still had some more complex cases which required activity analysis, as he mentioned in the PR too. My PR just tries to improve upon that by handling the case for const pointers, which can be handled without activity analysis too.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.08%. Comparing base (
9579ce4
) to head (3516cbc
).
Looks good to me. Sure, this will probably become obsolete once we have activity analysis but this is a great simplification for now.
This will fix the segmentation fault in roofit benchmarks (when auxiliary arrays are removed).