DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::PlatformUtil Struct Reference

#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)
 

Detailed Description

Definition at line 26 of file platform_util.hpp.

Member Enumeration Documentation

◆ TypeIndex

enum sycl::_V1::detail::PlatformUtil::TypeIndex : unsigned int
strong
Enumerator
Char 
Short 
Int 
Long 
Float 
Double 
Half 

Definition at line 27 of file platform_util.hpp.

Member Function Documentation

◆ getMaxClockFrequency()

uint32_t sycl::_V1::detail::PlatformUtil::getMaxClockFrequency ( )
static

◆ getMemCacheLineSize()

uint32_t sycl::_V1::detail::PlatformUtil::getMemCacheLineSize ( )
static

◆ getMemCacheSize()

uint64_t sycl::_V1::detail::PlatformUtil::getMemCacheSize ( )
static

◆ getNativeVectorWidth()

◆ prefetch()

void sycl::_V1::detail::PlatformUtil::prefetch ( const char *  Ptr,
size_t  NumBytes 
)
static

Definition at line 134 of file platform_util.cpp.

References getMemCacheLineSize().


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