Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions sycl/include/sycl/ext/oneapi/experimental/prefetch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ enum class cache_level { L1 = 0, L2 = 1, L3 = 2, L4 = 3 };

struct nontemporal;

struct prefetch_hint_key {
struct prefetch_hint_key
: detail::compile_time_property_key<detail::PropKind::Prefetch> {
template <cache_level Level, typename Hint>
using value_t =
property_value<prefetch_hint_key,
Expand Down Expand Up @@ -51,8 +52,6 @@ inline constexpr prefetch_hint_key::value_t<cache_level::L4, nontemporal>
namespace detail {
using namespace sycl::detail;

template <> struct IsCompileTimeProperty<prefetch_hint_key> : std::true_type {};

template <cache_level Level, typename Hint>
struct PropertyMetaInfo<prefetch_hint_key::value_t<Level, Hint>> {
static constexpr const char *name = std::is_same_v<Hint, nontemporal>
Expand Down
3 changes: 2 additions & 1 deletion sycl/include/sycl/ext/oneapi/properties/property.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ enum PropKind : uint32_t {
ResponseCapacity = 73,
MaxWorkGroupSize = 74,
MaxLinearWorkGroupSize = 75,
Prefetch = 76,
// PropKindSize must always be the last value.
PropKindSize = 76,
PropKindSize = 77,
};

struct property_key_base_tag {};
Expand Down
Loading