From f26b51186bef984763603ae3a576cee3ee50541c Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Fri, 27 Oct 2023 02:49:01 +0530 Subject: [PATCH] include algorithm --- include/clad/Differentiator/BuiltinDerivatives.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/clad/Differentiator/BuiltinDerivatives.h b/include/clad/Differentiator/BuiltinDerivatives.h index d7dd9d859..830f9f73e 100644 --- a/include/clad/Differentiator/BuiltinDerivatives.h +++ b/include/clad/Differentiator/BuiltinDerivatives.h @@ -13,6 +13,7 @@ namespace custom_derivatives{} #include "clad/Differentiator/ArrayRef.h" #include "clad/Differentiator/CladConfig.h" +#include #include namespace clad { @@ -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 __cplusplus > 201402L template CUDA_HOST_DEVICE ValueAndPushforward clamp_pushforward(const T& v, const T& lo, const T& hi, const T& d_v,