From 08f79fc74df12cf3f07810c284be198dced92a0f Mon Sep 17 00:00:00 2001 From: Denis Demidov Date: Mon, 10 Dec 2012 10:38:00 +0400 Subject: [PATCH] viennacl use default operations unless VIENNACL_WITH_OPENCL is defined --- .../odeint/external/viennacl/viennacl_operations.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/boost/numeric/odeint/external/viennacl/viennacl_operations.hpp b/boost/numeric/odeint/external/viennacl/viennacl_operations.hpp index 472b588c..6c6673c2 100644 --- a/boost/numeric/odeint/external/viennacl/viennacl_operations.hpp +++ b/boost/numeric/odeint/external/viennacl/viennacl_operations.hpp @@ -19,14 +19,17 @@ #define BOOST_NUMERIC_ODEINT_EXTERNAL_VIENNACL_VIENNACL_OPERATIONS_HPP_INCLUDED #include -#include + +#ifdef VIENNACL_WITH_OPENCL +# include +#endif namespace boost { namespace numeric { namespace odeint { - +#ifdef VIENNACL_WITH_OPENCL struct viennacl_operations { @@ -209,6 +212,9 @@ struct viennacl_operations }; +#else +struct viennacl_operations : public default_operations {}; +#endif } // odeint