DPC++ Runtime
Runtime libraries for oneAPI DPC++
device_aspect_traits.hpp File Reference
#include "device_aspect_macros.hpp"
#include <sycl/aspects.hpp>
#include <type_traits>
#include <sycl/info/aspects.def>
#include <sycl/info/aspects_deprecated.def>
Include dependency graph for device_aspect_traits.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 sycl
 

Macros

#define __SYCL_ASPECT_DEPRECATED_ALIAS(ASPECT, ID, MESSAGE)
 
#define __SYCL_ASPECT(ASPECT, ASPECT_VAL)
 
#define __SYCL_ASPECT_DEPRECATED(ASPECT, ASPECT_VAL, MSG)
 
#define __SYCL_ASPECT(ASPECT, ASPECT_VAL)
 
#define __SYCL_ASPECT_DEPRECATED(ASPECT, ASPECT_VAL, MSG)
 

Variables

template<aspect Aspect>
constexpr bool sycl::all_devices_have_v = all_devices_have<Aspect>::value
 
template<aspect Aspect>
constexpr bool sycl::any_device_has_v = any_device_has<Aspect>::value
 

Macro Definition Documentation

◆ __SYCL_ASPECT [1/2]

#define __SYCL_ASPECT (   ASPECT,
  ASPECT_VAL 
)
Value:
template <> \
struct all_devices_have<aspect::ASPECT> \
: std::bool_constant<__SYCL_ALL_DEVICES_HAVE_##ASPECT##__> {};

Definition at line 53 of file device_aspect_traits.hpp.

◆ __SYCL_ASPECT [2/2]

#define __SYCL_ASPECT (   ASPECT,
  ASPECT_VAL 
)
Value:
template <> \
struct any_device_has<aspect::ASPECT> \
: std::bool_constant<__SYCL_ANY_DEVICE_HAS_##ASPECT##__> {};

Definition at line 53 of file device_aspect_traits.hpp.

◆ __SYCL_ASPECT_DEPRECATED [1/2]

#define __SYCL_ASPECT_DEPRECATED (   ASPECT,
  ASPECT_VAL,
  MSG 
)
Value:
template <> \
struct all_devices_have<aspect::ASPECT> \
: std::bool_constant<__SYCL_ALL_DEVICES_HAVE_##ASPECT##__> {};

Definition at line 62 of file device_aspect_traits.hpp.

◆ __SYCL_ASPECT_DEPRECATED [2/2]

#define __SYCL_ASPECT_DEPRECATED (   ASPECT,
  ASPECT_VAL,
  MSG 
)
Value:
template <> \
struct any_device_has<aspect::ASPECT> \
: std::bool_constant<__SYCL_ANY_DEVICE_HAS_##ASPECT##__> {};

Definition at line 62 of file device_aspect_traits.hpp.

◆ __SYCL_ASPECT_DEPRECATED_ALIAS

#define __SYCL_ASPECT_DEPRECATED_ALIAS (   ASPECT,
  ID,
  MESSAGE 
)

Definition at line 21 of file device_aspect_traits.hpp.