From be8075fec7b15aa5a9323ee0d620602a2d875baf Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sat, 27 Jun 2026 14:02:33 +0000 Subject: [PATCH] [clad] Bump clad to version 2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clad 2.4 is now compatible with clang-12 through clang-22, having ported to LLVM 22 and shifted its support window to the last ten major releases (clang-11 has been dropped). This release strengthens both forward and reverse modes with OpenMP critical directive support, reverse-mode handling of member access on call results, and the ability to redefine builtin custom derivatives. CUDA support advances with tape offloading to VRAM and device-callable tape element destruction. A major theme is robustness: a graceful fallback when differentiating parameterless functions, a correctness fix for TBR analysis that was silently producing wrong derivatives, and an extensive round of memory-safety cleanup—scope-leak fixes, use-after-poison repairs, and explicit ownership—surfaced by new LLVM 22 AddressSanitizer CI coverage. Static-library builds now skip backend pass registration, fixing rootcling dictionary generation in ROOT. For details, please refer to the release notes. --- interpreter/cling/tools/plugins/clad/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/cling/tools/plugins/clad/CMakeLists.txt b/interpreter/cling/tools/plugins/clad/CMakeLists.txt index 346ccd2ee8d27..d601c383d049a 100644 --- a/interpreter/cling/tools/plugins/clad/CMakeLists.txt +++ b/interpreter/cling/tools/plugins/clad/CMakeLists.txt @@ -74,7 +74,7 @@ if (DEFINED CLAD_SOURCE_DIR) list(APPEND _clad_extra_settings SOURCE_DIR ${CLAD_SOURCE_DIR}) else() list(APPEND _clad_extra_settings GIT_REPOSITORY https://github.com/vgvassilev/clad.git) - list(APPEND _clad_extra_settings GIT_TAG v2.3) + list(APPEND _clad_extra_settings GIT_TAG v2.4) endif() ## list(APPEND _clad_patches_list "patch1.patch" "patch2.patch")