Loading [MathJax]/extensions/tex2jax.js
Parallel numerical verification of the σ_odd problem  October 6, 2018
All Classes Namespaces Files Functions Variables Typedefs Macros
Namespaces | Typedefs | Functions
helper.hpp File Reference

Helper functions for the OpenCL. More...

#include "../../common/sigmaodd/helper.hpp"
#include "../../common/sigmaodd/primes.hpp"
Include dependency graph for helper.hpp:

Go to the source code of this file.

Namespaces

 opencl
 

Typedefs

using opencl::nat_type = sigmaodd::nat_type
 
using opencl::prime_type = sigmaodd::prime_type
 

Functions

cl_bool opencl::get_device_info_cl_bool (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
cl_device_fp_config opencl::get_device_info_cl_device_fp_config (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
cl_device_local_mem_type opencl::get_device_info_cl_device_local_mem_type (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
cl_device_mem_cache_type opencl::get_device_info_cl_device_mem_cache_type (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
cl_device_type opencl::get_device_info_cl_device_type (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
cl_uint opencl::get_device_info_cl_uint (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
cl_ulong opencl::get_device_info_cl_ulong (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
size_t opencl::get_device_info_size_t (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
std::string opencl::get_device_info_string (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
VECTOR_CLASS<::size_t > opencl::get_device_info_vector_size_t (const cl::Device &device, cl_device_info info)
 Return the corresponding information about the device. More...
 
cl::Device opencl::get_first_device_gpu ()
 Return the first GPU device found. If not found then print an error message and exit. More...
 
std::string opencl::error_name (cl_int code)
 Return the error name corresponding to the error code. More...
 
void opencl::print_device (const cl::Device &device)
 Print information on this device. More...
 
void opencl::print_error (cl_int code, std::string message="", bool only_if_error=true, bool exit_if_error=true)
 Print an error message corresponding to the error code. More...
 
void opencl::print_platform (const cl::Platform &platform)
 Print information on this platform. More...
 
void opencl::print_platforms ()
 Print information on all platforms. More...
 

Detailed Description

Helper functions for the OpenCL.

(December 17, 2017) GPLv3 — Copyright (C) 2017 Olivier Pirson http://www.opimedia.be/

Definition in file helper.hpp.