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 opencl_simplified( const std::string & str );
30
31bool opencl_has_extension( const std::string & list, const std::string & name );
32
33// OpenCL C-style support functions
34std::string opencl_get_platform_info_string( const cl_platform_id id, const cl_platform_info name );
35
36std::string opencl_get_device_info_string( const cl_device_id id, const cl_device_info name );
37
38bool opencl_is_platform( cl_platform_id id, cl_platform_info name, const char * str );
39
40int opencl_version_flags( const std::string & version );
41
42std::list< std::string > opencl_split_string( const std::string & str, const char separator );
43
44// OpenCL support functions to retrieve information about an OpenCL device.
45unsigned int opencl_get_device_info_uint( const cl_device_id id, const cl_device_info name );
46
47int opencl_get_device_info_int( const cl_device_id id, const cl_device_info name );
48
49unsigned long opencl_get_device_info_ulong( const cl_device_id id, const cl_device_info name );
50
51std::size_t opencl_get_device_info_size( const cl_device_id id, const cl_device_info name );
52
53bool opencl_get_device_info_bool( const cl_device_id id, const cl_device_info name );
54
55bool opencl_get_device_info_is_string( const cl_device_id id, const cl_device_info name, const char * str );
56
57} // end of namespace itk
58
59#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 1667476801 for elastix by doxygen 1.9.4 elastix logo