#include <detail/platform_util.hpp>
Public Types | |
enum class | TypeIndex : unsigned int { Char = 0 , Short = 1 , Int = 2 , Long = 3 , Float = 4 , Double = 5 , Half = 6 } |
Static Public Member Functions | |
static uint32_t | getNativeVectorWidth (TypeIndex Index) |
Returns the maximum vector width counted in elements of the given type. More... | |
static uint32_t | getMaxClockFrequency () |
static uint32_t | getMemCacheLineSize () |
static uint64_t | getMemCacheSize () |
static void | prefetch (const char *Ptr, size_t NumBytes) |
Definition at line 26 of file platform_util.hpp.
|
strong |
Enumerator | |
---|---|
Char | |
Short | |
Int | |
Long | |
Float | |
Double | |
Half |
Definition at line 27 of file platform_util.hpp.
|
static |
Definition at line 42 of file platform_util.cpp.
Referenced by sycl::_V1::detail::get_device_info_host< info::device::max_clock_frequency >().
|
static |
Definition at line 49 of file platform_util.cpp.
Referenced by sycl::_V1::detail::get_device_info_host< info::device::global_mem_cache_line_size >(), and prefetch().
|
static |
Definition at line 63 of file platform_util.cpp.
Referenced by sycl::_V1::detail::get_device_info_host< info::device::global_mem_cache_size >().
|
static |
Returns the maximum vector width counted in elements of the given type.
Definition at line 77 of file platform_util.cpp.
Referenced by sycl::_V1::detail::get_device_info_host< info::device::native_vector_width_char >(), sycl::_V1::detail::get_device_info_host< info::device::native_vector_width_double >(), sycl::_V1::detail::get_device_info_host< info::device::native_vector_width_float >(), sycl::_V1::detail::get_device_info_host< info::device::native_vector_width_half >(), sycl::_V1::detail::get_device_info_host< info::device::native_vector_width_int >(), sycl::_V1::detail::get_device_info_host< info::device::native_vector_width_long >(), and sycl::_V1::detail::get_device_info_host< info::device::native_vector_width_short >().
|
static |
Definition at line 134 of file platform_util.cpp.
References getMemCacheLineSize().