3 // Copyright (c) 2018 Fady Essam
4 // Copyright (c) 2018 Stefan Seefeld
6 // Distributed under the Boost Software License, Version 1.0.
7 // (See accompanying file LICENSE_1_0.txt or
8 // copy at http://www.boost.org/LICENSE_1_0.txt)
10 #ifndef boost_numeric_ublas_opencl_library_hpp_
11 #define boost_numeric_ublas_opencl_library_hpp_
14 #include <type_traits>
17 namespace boost { namespace numeric { namespace ublas { namespace opencl {
22 library() { clblasSetup();}
23 ~library() { clblasTeardown();}
29 static bool const value =
30 std::is_same<T, float>::value |
31 std::is_same<T, double>::value |
32 std::is_same<T, std::complex<float>>::value |
33 std::is_same<T, std::complex<double>>::value;