triSYCL implementation of OpenCL SYCL
Classes | Namespaces | Macros
param_traits.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cl::sycl::info::param_traits< T, Param >
 Implement a meta-function from (T, value) to T' to express the return type value of an OpenCL function of kind (T, value) More...
 

Namespaces

 cl
 The vector type to be used as SYCL vector.
 
 cl::sycl
 
 cl::sycl::info
 

Macros

#define TRISYCL_INFO_PARAM_TRAITS_ANY_T(T, RETURN_TYPE)
 To declare a param_traits returning RETURN_TYPE for function of any T. More...
 
#define TRISYCL_INFO_PARAM_TRAITS(VALUE, RETURN_TYPE)
 To declare a param_traits returning RETURN_TYPE for function taking a VALUE of type T. More...
 

Macro Definition Documentation

#define TRISYCL_INFO_PARAM_TRAITS (   VALUE,
  RETURN_TYPE 
)
Value:
template <> \
class param_traits<decltype(VALUE), VALUE> { \
using type = RETURN_TYPE; \
};

To declare a param_traits returning RETURN_TYPE for function taking a VALUE of type T.

Definition at line 35 of file param_traits.hpp.

#define TRISYCL_INFO_PARAM_TRAITS_ANY_T (   T,
  RETURN_TYPE 
)
Value:
template <T Param> \
class param_traits<T, Param> { \
using type = RETURN_TYPE; \
};

To declare a param_traits returning RETURN_TYPE for function of any T.

Definition at line 25 of file param_traits.hpp.