#include <sycl/detail/pi.h>
#include <type_traits>
#include <sycl/aspects.hpp>
#include <sycl/id.hpp>
#include <sycl/info/info_desc.hpp>
#include <sycl/info/context_traits.def>
#include <sycl/info/event_traits.def>
#include <sycl/info/kernel_traits.def>
#include <sycl/info/platform_traits.def>
#include <sycl/info/queue_traits.def>
#include <sycl/info/event_profiling_traits.def>
#include <sycl/info/kernel_device_specific_traits.def>
#include <sycl/info/device_traits.def>
#include <sycl/info/ext_codeplay_device_traits.def>
#include <sycl/info/ext_intel_device_traits.def>
#include <sycl/info/ext_oneapi_device_traits.def>
Go to the source code of this file.
|
#define | __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, PiCode) |
|
#define | __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, PiCode) |
|
#define | __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, PiCode) |
|
#define | __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, PiCode) |
|
#define | __SYCL_PARAM_TRAITS_SPEC_SPECIALIZED(DescType, Desc, ReturnT, PiCode) __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, PiCode) |
|
#define | __SYCL_PARAM_TRAITS_SPEC(Namespace, DescType, Desc, ReturnT, PiCode) |
|
◆ __SYCL_PARAM_TRAITS_SPEC [1/5]
#define __SYCL_PARAM_TRAITS_SPEC |
( |
|
DescType, |
|
|
|
Desc, |
|
|
|
ReturnT, |
|
|
|
PiCode |
|
) |
| |
Value: template <> struct PiInfoCode<info::DescType::Desc> { \
static constexpr pi_##DescType##_info value = PiCode; \
}; \
template <> \
struct is_##DescType##_info_desc<info::DescType::Desc> : std::true_type { \
using return_type = info::DescType::Desc::return_type; \
};
Definition at line 113 of file info_desc_helpers.hpp.
◆ __SYCL_PARAM_TRAITS_SPEC [2/5]
#define __SYCL_PARAM_TRAITS_SPEC |
( |
|
DescType, |
|
|
|
Desc, |
|
|
|
ReturnT, |
|
|
|
PiCode |
|
) |
| |
Value: template <> struct PiInfoCode<info::DescType::Desc> { \
}; \
template <> \
struct is_##DescType##_info_desc<info::DescType::Desc> : std::true_type { \
using return_type = info::DescType::Desc::return_type; \
};
Definition at line 113 of file info_desc_helpers.hpp.
◆ __SYCL_PARAM_TRAITS_SPEC [3/5]
#define __SYCL_PARAM_TRAITS_SPEC |
( |
|
DescType, |
|
|
|
Desc, |
|
|
|
ReturnT, |
|
|
|
PiCode |
|
) |
| |
Value: template <> struct PiInfoCode<info::DescType::Desc> { \
static constexpr \
typename std::conditional<IsSubGroupInfo<info::DescType::Desc>::value, \
pi_kernel_sub_group_info, \
pi_kernel_group_info>::type value = PiCode; \
}; \
template <> \
struct is_##DescType##_info_desc<info::DescType::Desc> : std::true_type { \
using return_type = info::DescType::Desc::return_type; \
};
Definition at line 113 of file info_desc_helpers.hpp.
◆ __SYCL_PARAM_TRAITS_SPEC [4/5]
#define __SYCL_PARAM_TRAITS_SPEC |
( |
|
DescType, |
|
|
|
Desc, |
|
|
|
ReturnT, |
|
|
|
PiCode |
|
) |
| |
Value: template <> struct PiInfoCode<info::DescType::Desc> { \
static_cast<pi_device_info>(PiCode); \
}; \
template <> \
struct is_##DescType##_info_desc<info::DescType::Desc> : std::true_type { \
using return_type = info::DescType::Desc::return_type; \
};
Definition at line 113 of file info_desc_helpers.hpp.
◆ __SYCL_PARAM_TRAITS_SPEC [5/5]
#define __SYCL_PARAM_TRAITS_SPEC |
( |
|
Namespace, |
|
|
|
DescType, |
|
|
|
Desc, |
|
|
|
ReturnT, |
|
|
|
PiCode |
|
) |
| |
Value: template <> struct PiInfoCode<Namespace::info::DescType::Desc> { \
static_cast<pi_device_info>(PiCode); \
}; \
template <> \
struct is_##DescType##_info_desc<Namespace::info::DescType::Desc> \
: std::true_type { \
using return_type = Namespace::info::DescType::Desc::return_type; \
};
Definition at line 113 of file info_desc_helpers.hpp.
◆ __SYCL_PARAM_TRAITS_SPEC_SPECIALIZED
#define __SYCL_PARAM_TRAITS_SPEC_SPECIALIZED |
( |
|
DescType, |
|
|
|
Desc, |
|
|
|
ReturnT, |
|
|
|
PiCode |
|
) |
| __SYCL_PARAM_TRAITS_SPEC(DescType, Desc, ReturnT, PiCode) |