go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkOpenCLStringUtils.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkOpenCLStringUtils_h
19#define itkOpenCLStringUtils_h
20
21#include "itkOpenCL.h"
22
23#include <list>
24#include <string>
25
26namespace itk
27{
28// C-style support functions
29std::string
30opencl_simplified(const std::string & str);
31
32bool
33opencl_has_extension(const std::string & list, const std::string & name);
34
35// OpenCL C-style support functions
36std::string
37opencl_get_platform_info_string(const cl_platform_id id, const cl_platform_info name);
38
39std::string
40opencl_get_device_info_string(const cl_device_id id, const cl_device_info name);
41
42bool
43opencl_is_platform(cl_platform_id id, cl_platform_info name, const char * str);
44
45int
46opencl_version_flags(const std::string & version);
47
48std::list<std::string>
49opencl_split_string(const std::string & str, const char separator);
50
51// OpenCL support functions to retrieve information about an OpenCL device.
52unsigned int
53opencl_get_device_info_uint(const cl_device_id id, const cl_device_info name);
54
55int
56opencl_get_device_info_int(const cl_device_id id, const cl_device_info name);
57
58unsigned long
59opencl_get_device_info_ulong(const cl_device_id id, const cl_device_info name);
60
61std::size_t
62opencl_get_device_info_size(const cl_device_id id, const cl_device_info name);
63
64bool
65opencl_get_device_info_bool(const cl_device_id id, const cl_device_info name);
66
67bool
68opencl_get_device_info_is_string(const cl_device_id id, const cl_device_info name, const char * str);
69
70} // end of namespace itk
71
72#endif /* itkOpenCLStringUtils_h */
std::string opencl_get_platform_info_string(const cl_platform_id id, const cl_platform_info name)
std::string opencl_get_device_info_string(const cl_device_id id, const cl_device_info name)
std::list< std::string > opencl_split_string(const std::string &str, const char separator)
bool opencl_get_device_info_is_string(const cl_device_id id, const cl_device_info name, const char *str)
unsigned int opencl_get_device_info_uint(const cl_device_id id, const cl_device_info name)
std::vcl_size_t opencl_get_device_info_size(const cl_device_id id, const cl_device_info name)
bool opencl_has_extension(const std::string &list, const std::string &name)
bool opencl_get_device_info_bool(const cl_device_id id, const cl_device_info name)
unsigned long opencl_get_device_info_ulong(const cl_device_id id, const cl_device_info name)
bool opencl_is_platform(cl_platform_id id, cl_platform_info name, const char *str)
int opencl_get_device_info_int(const cl_device_id id, const cl_device_info name)
std::string opencl_simplified(const std::string &str)
int opencl_version_flags(const std::string &version)


Generated on 2023-01-13 for elastix by doxygen 1.9.6 elastix logo