DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::experimental::opportunistic_group Class Reference

#include <sycl/ext/oneapi/experimental/opportunistic_group.hpp>

Collaboration diagram for sycl::_V1::ext::oneapi::experimental::opportunistic_group:

Public Types

using id_type = id< 1 >
 
using range_type = range< 1 >
 
using linear_id_type = uint32_t
 

Public Member Functions

id_type get_group_id () const
 
id_type get_local_id () const
 
range_type get_group_range () const
 
range_type get_local_range () const
 
linear_id_type get_group_linear_id () const
 
linear_id_type get_local_linear_id () const
 
linear_id_type get_group_linear_range () const
 
linear_id_type get_local_linear_range () const
 
bool leader () const
 

Static Public Attributes

static constexpr int dimensions = 1
 
static constexpr sycl::memory_scope fence_scope
 

Protected Member Functions

 opportunistic_group (sub_group_mask m)
 

Protected Attributes

sub_group_mask Mask
 

Friends

opportunistic_group this_kernel::get_opportunistic_group ()
 
sub_group_mask sycl::detail::GetMask (opportunistic_group Group)
 

Detailed Description

Definition at line 37 of file opportunistic_group.hpp.

Member Typedef Documentation

◆ id_type

◆ linear_id_type

◆ range_type

Constructor & Destructor Documentation

◆ opportunistic_group()

sycl::_V1::ext::oneapi::experimental::opportunistic_group::opportunistic_group ( sub_group_mask  m)
inlineprotected

Definition at line 131 of file opportunistic_group.hpp.

Member Function Documentation

◆ get_group_id()

id_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_group_id ( ) const
inline

Definition at line 46 of file opportunistic_group.hpp.

Referenced by get_group_linear_id().

◆ get_group_linear_id()

linear_id_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_group_linear_id ( ) const
inline

Definition at line 82 of file opportunistic_group.hpp.

References get_group_id().

◆ get_group_linear_range()

linear_id_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_group_linear_range ( ) const
inline

Definition at line 100 of file opportunistic_group.hpp.

References get_group_range().

◆ get_group_range()

range_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_group_range ( ) const
inline

Definition at line 64 of file opportunistic_group.hpp.

Referenced by get_group_linear_range().

◆ get_local_id()

id_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_local_id ( ) const
inline

Definition at line 55 of file opportunistic_group.hpp.

References Mask.

Referenced by get_local_linear_id().

◆ get_local_linear_id()

linear_id_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_local_linear_id ( ) const
inline

Definition at line 91 of file opportunistic_group.hpp.

References get_local_id().

◆ get_local_linear_range()

linear_id_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_local_linear_range ( ) const
inline

Definition at line 109 of file opportunistic_group.hpp.

References get_local_range().

◆ get_local_range()

range_type sycl::_V1::ext::oneapi::experimental::opportunistic_group::get_local_range ( ) const
inline

◆ leader()

bool sycl::_V1::ext::oneapi::experimental::opportunistic_group::leader ( ) const
inline

Friends And Related Function Documentation

◆ sycl::detail::GetMask

sub_group_mask sycl::detail::GetMask ( opportunistic_group  Group)
friend

◆ this_kernel::get_opportunistic_group

Member Data Documentation

◆ dimensions

constexpr int sycl::_V1::ext::oneapi::experimental::opportunistic_group::dimensions = 1
staticconstexpr

Definition at line 42 of file opportunistic_group.hpp.

◆ fence_scope

constexpr sycl::memory_scope sycl::_V1::ext::oneapi::experimental::opportunistic_group::fence_scope
staticconstexpr
Initial value:

Definition at line 43 of file opportunistic_group.hpp.

◆ Mask

sub_group_mask sycl::_V1::ext::oneapi::experimental::opportunistic_group::Mask
protected

Definition at line 129 of file opportunistic_group.hpp.

Referenced by get_local_id(), get_local_range(), and leader().


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