ViennaCL - The Vienna Computing Library
1.2.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
viennacl
ocl
utils.hpp
Go to the documentation of this file.
1
#ifndef VIENNACL_OCL_UTILS_HPP_
2
#define VIENNACL_OCL_UTILS_HPP_
3
4
/* =========================================================================
5
Copyright (c) 2010-2011, Institute for Microelectronics,
6
Institute for Analysis and Scientific Computing,
7
TU Wien.
8
9
-----------------
10
ViennaCL - The Vienna Computing Library
11
-----------------
12
13
Project Head: Karl Rupp rupp@iue.tuwien.ac.at
14
15
(A list of authors and contributors can be found in the PDF manual)
16
17
License: MIT (X11), see file LICENSE in the base directory
18
============================================================================= */
19
24
#include <vector>
25
#include "
viennacl/ocl/backend.hpp
"
26
#include "
viennacl/ocl/device.hpp
"
27
28
namespace
viennacl
29
{
30
namespace
ocl
31
{
32
35
template
<
typename
ScalarType>
36
struct
DOUBLE_PRECISION_CHECKER
37
{
38
static
void
apply
() {}
39
};
40
41
template
<>
42
struct
DOUBLE_PRECISION_CHECKER
<double>
43
{
44
static
void
apply
()
45
{
46
if
(!
viennacl::ocl::current_device
().double_support())
47
throw
viennacl::ocl::double_precision_not_provided_error
();
48
}
49
};
50
51
52
53
}
//ocl
54
}
//viennacl
55
#endif
Generated on Wed Oct 10 2012 09:58:14 for ViennaCL - The Vienna Computing Library by
1.8.1.2