cl Namespace Reference
deduce_type_t takes an arbitrary type and attempts to map it to a cl::sycl::cl_type.
More...
Namespaces | |
| sycl | |
Detailed Description
deduce_type_t takes an arbitrary type and attempts to map it to a cl::sycl::cl_type.
Set the value of CL_SYCL_LANGUAGE_VERSION based on the value of SYCL_LANGUAGE_VERSION.
For example, int must have at least sixteen bits, but its width is otherwise implementation-defined. deduce_type_t<int> will correctly deduce whether int should be interpreted as cl_short (16-bit int), cl_int (32-bit int), or cl_long (64-bit int).
deduce_type_t also correctly deduces pointer-to-cv-qualified types (such as const int*) and multi_ptr<T, AS>.
The CL_SYCL_LANGUAGE_VERSION macro is deprecated in SYCL 2020