Skip to content

Conversation

vgvassilev
Copy link
Member

@vgvassilev vgvassilev commented Sep 21, 2025

Clad 2.1 introduces major advancements in reverse mode differentiation, bringing smarter handling of loops, assignments, and method calls, alongside the new clad::restore_tracker for functions that modify their inputs. Forward mode gains static scheduling for Hessians and higher-order derivatives, while CUDA support expands with custom derivatives for key Thrust algorithms such as reduce, transform, and transform_reduce, plus optimizations that reduce unnecessary GPU atomics. The release also strengthens error estimation, simplifies adjoint initialization, improves tape efficiency, and enhances diagnostics. With a migration to C++17, support extended up to clang-21, and numerous bug fixes, Clad 2.1 delivers faster, safer, and more reliable automatic differentiation across CPU and GPU workflows.

@vgvassilev
Copy link
Member Author

@guitargeek, can you take a look at the failures and interpret them for us? IIUC, there is nothing clad related...

Copy link

github-actions bot commented Sep 21, 2025

Test Results

    22 files      22 suites   3d 20h 12m 8s ⏱️
 3 680 tests  3 680 ✅ 0 💤 0 ❌
79 071 runs  79 071 ✅ 0 💤 0 ❌

Results for commit 122d0d0.

♻️ This comment has been updated with latest results.

@hahnjo hahnjo added the clean build Ask CI to do non-incremental build on PR label Sep 22, 2025
@hahnjo hahnjo closed this Sep 22, 2025
@hahnjo hahnjo reopened this Sep 22, 2025
@hahnjo
Copy link
Member

hahnjo commented Sep 22, 2025

You probably want a clean build because there may be files left over when just changing the GIT_TAG version

@guitargeek
Copy link
Contributor

@guitargeek, can you take a look at the failures and interpret them for us? IIUC, there is nothing clad related...

There are comparison failures with numeric gradients now that fail all over the place, so the current failures seem Clad related.

I'll have time to investigate this later in the afternoon after the ROOT meeting. I can create a reproducer and open an issue in Clad a usual.

@vgvassilev
Copy link
Member Author

Thank you, @guitargeek!

cc: @PetroZarytskyi

@guitargeek
Copy link
Contributor

I'm checking now Clad master with Petros possible fix on top:

@guitargeek
Copy link
Contributor

Note that while the ROOT CI will pass now, there is still a regression in Clad master that broke the CMS Combine likelihoods:

@vgvassilev
Copy link
Member Author

Note that while the ROOT CI will pass now, there is still a regression in Clad master that broke the CMS Combine likelihoods:

* [Regression in Clad `master` when aliasing array parameters in inner function vgvassilev/clad#1573](https://github.com/vgvassilev/clad/issues/1573)

Ah, okay, thanks for clarifying.

Clad 2.1 introduces major advancements in reverse mode differentiation, bringing
smarter handling of loops, assignments, and method calls, alongside the new
clad::restore_tracker for functions that modify their inputs. Forward mode gains
static scheduling for Hessians and higher-order derivatives, while CUDA support
expands with custom derivatives for key Thrust algorithms such as reduce,
transform, and transform_reduce, plus optimizations that reduce unnecessary GPU
atomics. The release also strengthens error estimation, simplifies adjoint
initialization, improves tape efficiency, and enhances diagnostics. With a
migration to C++17, support extended up to clang-21, and numerous bug fixes,
Clad 2.1 delivers faster, safer, and more reliable automatic differentiation
across CPU and GPU workflows.
@vgvassilev vgvassilev changed the title [clad] Check clad master before v2.1 [clad] Bump to v2.1 Oct 1, 2025
@vgvassilev vgvassilev requested a review from guitargeek October 1, 2025 10:12
@vgvassilev vgvassilev marked this pull request as ready for review October 1, 2025 10:12
Copy link
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much!

@vgvassilev vgvassilev merged commit 5205599 into root-project:master Oct 1, 2025
27 checks passed
@vgvassilev vgvassilev deleted the check-clad-2.1 branch October 1, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean build Ask CI to do non-incremental build on PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants