diff --git a/stan/math/rev.hpp b/stan/math/rev.hpp index 20d5a477846..91d374eb12d 100644 --- a/stan/math/rev.hpp +++ b/stan/math/rev.hpp @@ -3,7 +3,9 @@ #include +#ifdef STAN_OPENCL #include +#endif #include #include