diff --git a/dev/cuda/gelu_forward.cu b/dev/cuda/gelu_forward.cu index f323a3e..fad7be8 100644 --- a/dev/cuda/gelu_forward.cu +++ b/dev/cuda/gelu_forward.cu @@ -8,6 +8,14 @@ version 1 is naive port from CPU code to kernel ./gelu_forward 1 */ +/* +If encountering "error: identifier "M_PI" is undefined", add the following lines to the top of the file: + +#define _USE_MATH_DEFINES +#include OR #include + +*/ + #include #include #include