DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::intel::experimental::cache_control< M, Ls > Struct Template Reference

#include <sycl/ext/intel/experimental/cache_control_properties.hpp>

Collaboration diagram for sycl::_V1::ext::intel::experimental::cache_control< M, Ls >:

Static Public Attributes

static constexpr const auto mode = M
 
static constexpr const int countL1 = ((Ls == cache_level::L1 ? 1 : 0) + ...)
 
static constexpr const int countL2 = ((Ls == cache_level::L2 ? 1 : 0) + ...)
 
static constexpr const int countL3 = ((Ls == cache_level::L3 ? 1 : 0) + ...)
 
static constexpr const int countL4 = ((Ls == cache_level::L4 ? 1 : 0) + ...)
 
static constexpr const uint32_t levels = ((1 << static_cast<int>(Ls)) | ...)
 
static constexpr const uint32_t encoding
 

Detailed Description

template<cache_mode M, cache_level... Ls>
struct sycl::_V1::ext::intel::experimental::cache_control< M, Ls >

Definition at line 55 of file cache_control_properties.hpp.

Member Data Documentation

◆ countL1

template<cache_mode M, cache_level... Ls>
constexpr const int sycl::_V1::ext::intel::experimental::cache_control< M, Ls >::countL1 = ((Ls == cache_level::L1 ? 1 : 0) + ...)
staticconstexpr

Definition at line 57 of file cache_control_properties.hpp.

◆ countL2

template<cache_mode M, cache_level... Ls>
constexpr const int sycl::_V1::ext::intel::experimental::cache_control< M, Ls >::countL2 = ((Ls == cache_level::L2 ? 1 : 0) + ...)
staticconstexpr

Definition at line 58 of file cache_control_properties.hpp.

◆ countL3

template<cache_mode M, cache_level... Ls>
constexpr const int sycl::_V1::ext::intel::experimental::cache_control< M, Ls >::countL3 = ((Ls == cache_level::L3 ? 1 : 0) + ...)
staticconstexpr

Definition at line 59 of file cache_control_properties.hpp.

◆ countL4

template<cache_mode M, cache_level... Ls>
constexpr const int sycl::_V1::ext::intel::experimental::cache_control< M, Ls >::countL4 = ((Ls == cache_level::L4 ? 1 : 0) + ...)
staticconstexpr

Definition at line 60 of file cache_control_properties.hpp.

◆ encoding

template<cache_mode M, cache_level... Ls>
constexpr const uint32_t sycl::_V1::ext::intel::experimental::cache_control< M, Ls >::encoding
staticconstexpr
Initial value:
=
(countL1, countL2, countL3, countL4, detail::checkLevel1<countL1>(),
detail::checkLevel2<countL2>(), detail::checkLevel3<countL3>(),
detail::checkLevel4<countL4>(), levels << static_cast<int>(M) * 4)

Definition at line 65 of file cache_control_properties.hpp.

◆ levels

template<cache_mode M, cache_level... Ls>
constexpr const uint32_t sycl::_V1::ext::intel::experimental::cache_control< M, Ls >::levels = ((1 << static_cast<int>(Ls)) | ...)
staticconstexpr

Definition at line 61 of file cache_control_properties.hpp.

◆ mode

template<cache_mode M, cache_level... Ls>
constexpr const auto sycl::_V1::ext::intel::experimental::cache_control< M, Ls >::mode = M
staticconstexpr

Definition at line 56 of file cache_control_properties.hpp.


The documentation for this struct was generated from the following file: