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

#include <detail/platform_util.hpp>

Public Types

enum  TypeIndex : unsigned int {
  TypeIndex::Char = 0, TypeIndex::Short = 1, TypeIndex::Int = 2, TypeIndex::Long = 3,
  TypeIndex::Float = 4, TypeIndex::Double = 5, TypeIndex::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 23 of file platform_util.hpp.

Member Enumeration Documentation

◆ TypeIndex

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

Definition at line 24 of file platform_util.hpp.

Member Function Documentation

◆ getMaxClockFrequency()

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

Definition at line 38 of file platform_util.cpp.

◆ getMemCacheLineSize()

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

Definition at line 76 of file platform_util.cpp.

◆ getMemCacheSize()

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

Definition at line 90 of file platform_util.cpp.

◆ getNativeVectorWidth()

uint32_t cl::sycl::detail::PlatformUtil::getNativeVectorWidth ( PlatformUtil::TypeIndex  TIndex)
static

Returns the maximum vector width counted in elements of the given type.

Definition at line 104 of file platform_util.cpp.

◆ prefetch()

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

Definition at line 161 of file platform_util.cpp.

Referenced by __spirv_ocl_prefetch().


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