Skip to content

Commit

Permalink
include algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
vaithak committed Oct 26, 2023
1 parent da2b40c commit cce6fd2
Showing 1 changed file with 2 additions and 1 deletion.
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
#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
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 cce6fd2

Please sign in to comment.