Skip to content

Commit

Permalink
include algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
vaithak committed Oct 27, 2023
1 parent da2b40c commit f4caf1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ jobs:
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
# When debugging increase to a suitable value!
timeout-minutes: ${{ github.event.pull_request && 1 || 20 }}
timeout-minutes: ${{ github.event.pull_request && 20 || 20 }}
- name: Prepare code coverage report
if: ${{ success() && (matrix.coverage == true) }}
run: |
Expand Down
3 changes: 2 additions & 1 deletion include/clad/Differentiator/BuiltinDerivatives.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace custom_derivatives{}
#include "clad/Differentiator/ArrayRef.h"
#include "clad/Differentiator/CladConfig.h"

#include <algorithm>
#include <cmath>

namespace clad {
Expand Down Expand Up @@ -171,7 +172,7 @@ CUDA_HOST_DEVICE void max_pullback(const T& a, const T& b, U d_y,
*d_a += d_y;
}

#if __cplusplus >= 201703L
#ifdef __cpp_lib_clamp
template <typename T>
CUDA_HOST_DEVICE ValueAndPushforward<T, T>
clamp_pushforward(const T& v, const T& lo, const T& hi, const T& d_v,
Expand Down

0 comments on commit f4caf1e

Please sign in to comment.