DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::sub_group Struct Reference

#include <sycl/ext/oneapi/sub_group.hpp>

Collaboration diagram for sycl::_V1::ext::oneapi::sub_group:

Public Types

using id_type = id< 1 >
 
using range_type = range< 1 >
 
using linear_id_type = uint32_t
 
template<typename T >
using EnableIfIsScalarArithmetic = std::enable_if_t< sycl::detail::is_scalar_arithmetic< T >::value, T >
 

Public Member Functions

id_type get_local_id () const
 
linear_id_type get_local_linear_id () const
 
range_type get_local_range () const
 
range_type get_max_local_range () const
 
id_type get_group_id () const
 
linear_id_type get_group_linear_id () const
 
range_type get_group_range () const
 
template<typename T >
shuffle (T x, id_type local_id) const
 
template<typename T >
shuffle_down (T x, uint32_t delta) const
 
template<typename T >
shuffle_up (T x, uint32_t delta) const
 
template<typename T >
shuffle_xor (T x, id_type value) const
 
template<typename CVT , typename T = std::remove_cv_t<CVT>>
load (CVT *src) const
 
template<typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore< T, Space >::value, T > load (const multi_ptr< CVT, Space, IsDecorated > cv_src) const
 
template<typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore< T, Space >::value, T > load (const multi_ptr< CVT, Space, IsDecorated > cv_src) const
 
template<int N, typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore< T, Space >::value, vec< T, N > > load (const multi_ptr< CVT, Space, IsDecorated > src) const
 
template<int N, typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore< T, Space >::value, vec< T, N > > load (const multi_ptr< CVT, Space, IsDecorated > cv_src) const
 
template<typename T >
void store (T *dst, const T &x) const
 
template<typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore< T, Space >::value > store (multi_ptr< T, Space, DecorateAddress > dst, const T &x) const
 
template<typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore< T, Space >::value > store (multi_ptr< T, Space, DecorateAddress > dst, const T &x) const
 
template<int N, typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore< T, Space >::value > store (multi_ptr< T, Space, DecorateAddress > dst, const vec< T, N > &x) const
 
template<int N, typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore< T, Space >::value > store (multi_ptr< T, Space, DecorateAddress > dst, const vec< T, N > &x) const
 
void barrier () const
 
 sub_group ()=default
 

Static Public Attributes

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

Friends

sub_group experimental::this_sub_group ()
 

Detailed Description

Definition at line 131 of file sub_group.hpp.

Member Typedef Documentation

◆ EnableIfIsScalarArithmetic

template<typename T >
using sycl::_V1::ext::oneapi::sub_group::EnableIfIsScalarArithmetic = std::enable_if_t<sycl::detail::is_scalar_arithmetic<T>::value, T>

Definition at line 206 of file sub_group.hpp.

◆ id_type

Definition at line 133 of file sub_group.hpp.

◆ linear_id_type

Definition at line 135 of file sub_group.hpp.

◆ range_type

Definition at line 134 of file sub_group.hpp.

Constructor & Destructor Documentation

◆ sub_group()

sycl::_V1::ext::oneapi::sub_group::sub_group ( )
default

Member Function Documentation

◆ barrier()

◆ get_group_id()

id_type sycl::_V1::ext::oneapi::sub_group::get_group_id ( ) const
inline

Definition at line 178 of file sub_group.hpp.

◆ get_group_linear_id()

linear_id_type sycl::_V1::ext::oneapi::sub_group::get_group_linear_id ( ) const
inline

Definition at line 187 of file sub_group.hpp.

◆ get_group_range()

range_type sycl::_V1::ext::oneapi::sub_group::get_group_range ( ) const
inline

Definition at line 196 of file sub_group.hpp.

◆ get_local_id()

id_type sycl::_V1::ext::oneapi::sub_group::get_local_id ( ) const
inline

◆ get_local_linear_id()

linear_id_type sycl::_V1::ext::oneapi::sub_group::get_local_linear_id ( ) const
inline

Definition at line 151 of file sub_group.hpp.

◆ get_local_range()

range_type sycl::_V1::ext::oneapi::sub_group::get_local_range ( ) const
inline

◆ get_max_local_range()

range_type sycl::_V1::ext::oneapi::sub_group::get_max_local_range ( ) const
inline

Definition at line 169 of file sub_group.hpp.

◆ load() [1/5]

template<typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore<T, Space>::value, T> sycl::_V1::ext::oneapi::sub_group::load ( const multi_ptr< CVT, Space, IsDecorated >  cv_src) const
inline

◆ load() [2/5]

template<typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore<T, Space>::value, T> sycl::_V1::ext::oneapi::sub_group::load ( const multi_ptr< CVT, Space, IsDecorated >  cv_src) const
inline

◆ load() [3/5]

template<int N, typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore<T, Space>::value, vec<T, N> > sycl::_V1::ext::oneapi::sub_group::load ( const multi_ptr< CVT, Space, IsDecorated >  cv_src) const
inline

◆ load() [4/5]

template<int N, typename CVT , access::address_space Space, access::decorated IsDecorated, typename T = std::remove_cv_t<CVT>>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore<T, Space>::value, vec<T, N> > sycl::_V1::ext::oneapi::sub_group::load ( const multi_ptr< CVT, Space, IsDecorated >  src) const
inline

Definition at line 409 of file sub_group.hpp.

◆ load() [5/5]

template<typename CVT , typename T = std::remove_cv_t<CVT>>
T sycl::_V1::ext::oneapi::sub_group::load ( CVT *  src) const
inline

Definition at line 292 of file sub_group.hpp.

◆ shuffle()

template<typename T >
T sycl::_V1::ext::oneapi::sub_group::shuffle ( x,
id_type  local_id 
) const
inline

Definition at line 212 of file sub_group.hpp.

◆ shuffle_down()

template<typename T >
T sycl::_V1::ext::oneapi::sub_group::shuffle_down ( x,
uint32_t  delta 
) const
inline

Definition at line 223 of file sub_group.hpp.

◆ shuffle_up()

template<typename T >
T sycl::_V1::ext::oneapi::sub_group::shuffle_up ( x,
uint32_t  delta 
) const
inline

Definition at line 234 of file sub_group.hpp.

◆ shuffle_xor()

template<typename T >
T sycl::_V1::ext::oneapi::sub_group::shuffle_xor ( x,
id_type  value 
) const
inline

Definition at line 245 of file sub_group.hpp.

◆ store() [1/5]

template<typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore<T, Space>::value> sycl::_V1::ext::oneapi::sub_group::store ( multi_ptr< T, Space, DecorateAddress >  dst,
const T &  x 
) const
inline

◆ store() [2/5]

template<typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore<T, Space>::value> sycl::_V1::ext::oneapi::sub_group::store ( multi_ptr< T, Space, DecorateAddress >  dst,
const T &  x 
) const
inline

◆ store() [3/5]

template<int N, typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForGlobalLoadStore<T, Space>::value> sycl::_V1::ext::oneapi::sub_group::store ( multi_ptr< T, Space, DecorateAddress >  dst,
const vec< T, N > &  x 
) const
inline

Definition at line 574 of file sub_group.hpp.

◆ store() [4/5]

template<int N, typename T , access::address_space Space, access::decorated DecorateAddress>
std::enable_if_t< sycl::detail::sub_group::AcceptableForLocalLoadStore<T, Space>::value> sycl::_V1::ext::oneapi::sub_group::store ( multi_ptr< T, Space, DecorateAddress >  dst,
const vec< T, N > &  x 
) const
inline

◆ store() [5/5]

template<typename T >
void sycl::_V1::ext::oneapi::sub_group::store ( T *  dst,
const T &  x 
) const
inline

Definition at line 474 of file sub_group.hpp.

Friends And Related Function Documentation

◆ experimental::this_sub_group

Member Data Documentation

◆ dimensions

constexpr int sycl::_V1::ext::oneapi::sub_group::dimensions = 1
staticconstexpr

Definition at line 136 of file sub_group.hpp.

◆ fence_scope

constexpr sycl::memory_scope sycl::_V1::ext::oneapi::sub_group::fence_scope
staticconstexpr
Initial value:
=
sycl::memory_scope::sub_group

Definition at line 137 of file sub_group.hpp.


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