info.h File Reference
This file implements the get info mechanism that is used for all SYCL class get_info methods. More...
#include "SYCL/cl_types.h"
#include "SYCL/common.h"
#include "SYCL/error_log.h"
#include "SYCL/include_opencl.h"
#include "SYCL/predefines.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <limits>
#include <sstream>
#include <string>
#include <type_traits>
#include <vector>
#include "computecpp_export.h"
Go to the source code of this file.
Classes | |
struct | cl::sycl::info::param_traits< T, param > |
provides the class templates whose specializations will contain the return_type field containing the type of the value returned by the specializations of get_info(). More... | |
Namespaces | |
cl | |
deduce_type_t takes an arbitrary type and attempts to map it to a cl::sycl::cl_type . | |
cl::sycl | |
cl::sycl::info | |
Detailed Description
This file implements the get info mechanism that is used for all SYCL class get_info methods.
This is implemented as a generic function that can be applied to any OpenCL get info function with any OpenCL return type and SYCL return type. In order for this to work it does require some conversion functions to be implemented for the cases where the OpenCL type and the SYCL type do not match. The info parameters and host info definitions are all defined in the appropriate header file using macros that are defined here. The conversion functions are defined here for the common cases and in the appropriate header files for SYCL object specific info parameters.
Definition in file info.h.