Skip to content

Commit

Permalink
Bump clad version to v1.2.
Browse files Browse the repository at this point in the history
This new release includes some improvements:
  * Add experimental support for forward vector mode
  * Add pushforwards for std::floor and std::ceil
  * Improve AD function interfaces with bitmasked options. For example:
    clad::differentiate<<clad::order::first, clad::opts::vector_mode>(f) will
    be equivalent to clad::differentiate<<1, clad::opts::vector_mode>(f) and
    will request the first order derivative of f in forward vector mode.
  * LLVM16 Support

See more at: https://github.com/vgvassilev/clad/blob/v1.2/docs/internalDocs/ReleaseNotes.md
  • Loading branch information
vgvassilev authored and jenkins committed Jul 20, 2023
1 parent 01ff272 commit 5e3310a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 268 deletions.
16 changes: 8 additions & 8 deletions tools/plugins/clad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,18 @@ set(_clad_cmake_logging_settings

list(APPEND _clad_cmake_logging_settings LOG_OUTPUT_ON_FAILURE ON)

list(APPEND _clad_patches_list "clad_array_size_type.patch" "clad_local_array.patch" "clad_fma.patch")
set(_clad_patch_command
${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/interpreter/cling/tools/plugins/clad/patches <SOURCE_DIR>
&& git checkout <SOURCE_DIR>
&& git apply --ignore-space-change --ignore-whitespace ${_clad_patches_list}
)
#list(APPEND _clad_patches_list "patch1.patch" "patch2.patch")
#set(_clad_patch_command
# ${CMAKE_COMMAND} -E copy_directory
# ${CMAKE_SOURCE_DIR}/interpreter/cling/tools/plugins/clad/patches <SOURCE_DIR>
# && git checkout <SOURCE_DIR>
# && git apply --ignore-space-change --ignore-whitespace ${_clad_patches_list}
# )

ExternalProject_Add(
clad
GIT_REPOSITORY https://github.com/vgvassilev/clad.git
GIT_TAG v1.1
GIT_TAG v1.2
UPDATE_COMMAND ""
PATCH_COMMAND ${_clad_patch_command}
CMAKE_ARGS -G ${CMAKE_GENERATOR}
Expand Down
28 changes: 0 additions & 28 deletions tools/plugins/clad/patches/clad_array_size_type.patch

This file was deleted.

132 changes: 0 additions & 132 deletions tools/plugins/clad/patches/clad_fma.patch

This file was deleted.

100 changes: 0 additions & 100 deletions tools/plugins/clad/patches/clad_local_array.patch

This file was deleted.

0 comments on commit 5e3310a

Please sign in to comment.