Skip to content

Commit 5205599

Browse files
committed
[clad] Bump to v2.1
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.
1 parent 438c186 commit 5205599

File tree

2 files changed

+9
-52
lines changed

2 files changed

+9
-52
lines changed

interpreter/cling/tools/plugins/clad/CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,17 @@ if (DEFINED CLAD_SOURCE_DIR)
7474
list(APPEND _clad_extra_settings SOURCE_DIR ${CLAD_SOURCE_DIR})
7575
else()
7676
list(APPEND _clad_extra_settings GIT_REPOSITORY https://github.com/vgvassilev/clad.git)
77-
list(APPEND _clad_extra_settings GIT_TAG v2.0)
77+
list(APPEND _clad_extra_settings GIT_TAG v2.1)
7878
endif()
7979

80-
# list(APPEND _clad_patches_list "patch1.patch" "patch2.patch")
81-
list(APPEND _clad_patches_list "Add-missing-exception-include.patch")
82-
set(_clad_patch_command
83-
${CMAKE_COMMAND} -E copy_directory
84-
${CMAKE_SOURCE_DIR}/interpreter/cling/tools/plugins/clad/patches <SOURCE_DIR>
85-
&& git checkout -q <SOURCE_DIR>
86-
&& git apply --ignore-space-change --ignore-whitespace ${_clad_patches_list}
87-
)
80+
## list(APPEND _clad_patches_list "patch1.patch" "patch2.patch")
81+
#list(APPEND _clad_patches_list "")
82+
#set(_clad_patch_command
83+
# ${CMAKE_COMMAND} -E copy_directory
84+
# ${CMAKE_SOURCE_DIR}/interpreter/cling/tools/plugins/clad/patches <SOURCE_DIR>
85+
# && git checkout -q <SOURCE_DIR>
86+
# && git apply --ignore-space-change --ignore-whitespace ${_clad_patches_list}
87+
# )
8888

8989
ExternalProject_Add(
9090
clad

interpreter/cling/tools/plugins/clad/patches/Add-missing-exception-include.patch

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)