DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::detail::Builder Class Reference

#include <sycl/detail/helpers.hpp>

Public Member Functions

 Builder ()=delete
 

Static Public Member Functions

template<int Dims>
static group< Dims > createGroup (const range< Dims > &Global, const range< Dims > &Local, const range< Dims > &Group, const id< Dims > &Index)
 
template<int Dims>
static group< Dims > createGroup (const range< Dims > &Global, const range< Dims > &Local, const id< Dims > &Index)
 
template<class ResType , typename BitsType >
static ResType createSubGroupMask (BitsType Bits, size_t BitsNum)
 
template<int Dims, bool WithOffset>
static std::enable_if_t< WithOffset, item< Dims, WithOffset > > createItem (const range< Dims > &Extent, const id< Dims > &Index, const id< Dims > &Offset)
 
template<int Dims, bool WithOffset>
static std::enable_if_t<!WithOffset, item< Dims, WithOffset > > createItem (const range< Dims > &Extent, const id< Dims > &Index)
 
template<int Dims>
static nd_item< Dims > createNDItem (const item< Dims, true > &Global, const item< Dims, false > &Local, const group< Dims > &Group)
 
template<int Dims>
static h_item< Dims > createHItem (const item< Dims, false > &Global, const item< Dims, false > &Local)
 
template<int Dims>
static h_item< Dims > createHItem (const item< Dims, false > &Global, const item< Dims, false > &Local, const range< Dims > &Flex)
 
template<int Dims, bool WithOffset>
static void updateItemIndex (sycl::item< Dims, WithOffset > &Item, const id< Dims > &NextIndex)
 

Detailed Description

Definition at line 68 of file helpers.hpp.

Constructor & Destructor Documentation

◆ Builder()

sycl::_V1::detail::Builder::Builder ( )
delete

Member Function Documentation

◆ createGroup() [1/2]

template<int Dims>
static group<Dims> sycl::_V1::detail::Builder::createGroup ( const range< Dims > &  Global,
const range< Dims > &  Local,
const id< Dims > &  Index 
)
inlinestatic

Definition at line 80 of file helpers.hpp.

◆ createGroup() [2/2]

template<int Dims>
static group<Dims> sycl::_V1::detail::Builder::createGroup ( const range< Dims > &  Global,
const range< Dims > &  Local,
const range< Dims > &  Group,
const id< Dims > &  Index 
)
inlinestatic

Definition at line 74 of file helpers.hpp.

Referenced by sycl::_V1::nd_item< Dimensions >::get_group().

◆ createHItem() [1/2]

template<int Dims>
static h_item<Dims> sycl::_V1::detail::Builder::createHItem ( const item< Dims, false > &  Global,
const item< Dims, false > &  Local 
)
inlinestatic

Definition at line 112 of file helpers.hpp.

◆ createHItem() [2/2]

template<int Dims>
static h_item<Dims> sycl::_V1::detail::Builder::createHItem ( const item< Dims, false > &  Global,
const item< Dims, false > &  Local,
const range< Dims > &  Flex 
)
inlinestatic

Definition at line 118 of file helpers.hpp.

◆ createItem() [1/2]

template<int Dims, bool WithOffset>
static std::enable_if_t<!WithOffset, item<Dims, WithOffset> > sycl::_V1::detail::Builder::createItem ( const range< Dims > &  Extent,
const id< Dims > &  Index 
)
inlinestatic

Definition at line 100 of file helpers.hpp.

◆ createItem() [2/2]

template<int Dims, bool WithOffset>
static std::enable_if_t<WithOffset, item<Dims, WithOffset> > sycl::_V1::detail::Builder::createItem ( const range< Dims > &  Extent,
const id< Dims > &  Index,
const id< Dims > &  Offset 
)
inlinestatic

Definition at line 93 of file helpers.hpp.

◆ createNDItem()

template<int Dims>
static nd_item<Dims> sycl::_V1::detail::Builder::createNDItem ( const item< Dims, true > &  Global,
const item< Dims, false > &  Local,
const group< Dims > &  Group 
)
inlinestatic

Definition at line 105 of file helpers.hpp.

◆ createSubGroupMask()

template<class ResType , typename BitsType >
static ResType sycl::_V1::detail::Builder::createSubGroupMask ( BitsType  Bits,
size_t  BitsNum 
)
inlinestatic

Definition at line 87 of file helpers.hpp.

◆ updateItemIndex()

template<int Dims, bool WithOffset>
static void sycl::_V1::detail::Builder::updateItemIndex ( sycl::item< Dims, WithOffset > &  Item,
const id< Dims > &  NextIndex 
)
inlinestatic

Definition at line 125 of file helpers.hpp.

Referenced by sycl::_V1::h_item< Dimensions >::setLogicalLocalID().


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