From f114394456c5b569f21558e53bca86fe1ecd9c76 Mon Sep 17 00:00:00 2001 From: Laurent Mazare Date: Fri, 7 Jul 2023 06:42:57 +0100 Subject: [PATCH] Include the math.h file to get access to constants. (#99) --- candle-kernels/src/unary.cu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/candle-kernels/src/unary.cu b/candle-kernels/src/unary.cu index 726db339..bd8a210e 100644 --- a/candle-kernels/src/unary.cu +++ b/candle-kernels/src/unary.cu @@ -1,4 +1,6 @@ #include "cuda_utils.cuh" +#define _USE_MATH_DEFINES +#include #include #define UNARY_OP(TYPENAME, FN_NAME, FUNC) \