TR-mbed 1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Eigen::TensorSycl::internal::ThreadProperties< StorageIndex > Struct Template Reference

ThreadProperties is a template class that provides each thread's properties within a workgroup. Please see the sycl-1.2.1 specification (https://www.khronos.org/registry/SYCL/specs/sycl-1.2.1.pdf) for the workgroup, work-items. More...

#include <TensorContractionSycl.h>

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ThreadProperties (const StorageIndex linearLocalThreadId_, const StorageIndex kGroupId_, const StorageIndex mGroupOffset_, const StorageIndex nGroupOffset_, const StorageIndex kGroupOffset_, const StorageIndex mLocalOffset_, const StorageIndex nLocalOffset_, const StorageIndex mGlobalOffset_, const StorageIndex nGlobalOffset_, StorageIndex kSize_, const bool is_internal_)
 

Public Attributes

const StorageIndex linearLocalThreadId
 
const StorageIndex kGroupId
 
const StorageIndex mGroupOffset
 
const StorageIndex nGroupOffset
 
const StorageIndex kGroupOffset
 
const StorageIndex mLocalOffset
 
const StorageIndex nLocalOffset
 
const StorageIndex mGlobalOffset
 
const StorageIndex nGlobalOffset
 
StorageIndex kSize
 
const bool is_internal
 

Detailed Description

template<typename StorageIndex>
struct Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >

ThreadProperties is a template class that provides each thread's properties within a workgroup. Please see the sycl-1.2.1 specification (https://www.khronos.org/registry/SYCL/specs/sycl-1.2.1.pdf) for the workgroup, work-items.

Template Parameters
StorageIndexdetermines the StorageIndex Type
Parameters
linearLocalThreadIddetermines the linearized location of a thread within a work-group
kGroupIddetermines the logical group id in a k dimension of the flattened tensor. It will be > 1 when tall/skinny algorithm is used
mGroupOffsetdetermines the logical start position of all thread within a workgroup for the m dimension of the flattened tensor.
kGroupOffsetdetermines the logical start position of all thread within a workgroup for the k dimension of the flattened tensor. It will be > 1 when tall/skinny algorithm is used.
mLocalOffsetdetermines the logical start position of each thread within a workgroup for the m dimension of a flattened tensor. The position determines the distance of each thread within the workgroup from each other independent from their global position.
nLocalOffsetdetermines the logical start position of each thread within a workgroup for the n dimension of a flattened tensor. The position determines the distance of each thread within the workgroup from each other independent from their global position.
mGlobalOffsetdetermines the logical start position of each thread a thread for the m dimension on a flattened tensor
nGlobalOffsetdetermines the logical start position of each thread a thread for the n dimension on a flattened tensor
kSize: determine the number of the k elements of the flattened Tensor to be processed by each thread for the given tensor block. This is !=K dimension of Flattened Tensor when Tall/Skinny matrix is used.
is_internal: this will determined if the thread within the work-group computes an internal block of tensor or the edge blocks. When it is internal, there is no need to check the boundaries and all the if stantement can be resolve by compiler.

Constructor & Destructor Documentation

◆ ThreadProperties()

template<typename StorageIndex >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::ThreadProperties ( const StorageIndex  linearLocalThreadId_,
const StorageIndex  kGroupId_,
const StorageIndex  mGroupOffset_,
const StorageIndex  nGroupOffset_,
const StorageIndex  kGroupOffset_,
const StorageIndex  mLocalOffset_,
const StorageIndex  nLocalOffset_,
const StorageIndex  mGlobalOffset_,
const StorageIndex  nGlobalOffset_,
StorageIndex  kSize_,
const bool  is_internal_ 
)
inline

Member Data Documentation

◆ is_internal

template<typename StorageIndex >
const bool Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::is_internal

◆ kGroupId

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::kGroupId

◆ kGroupOffset

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::kGroupOffset

◆ kSize

template<typename StorageIndex >
StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::kSize

◆ linearLocalThreadId

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::linearLocalThreadId

◆ mGlobalOffset

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::mGlobalOffset

◆ mGroupOffset

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::mGroupOffset

◆ mLocalOffset

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::mLocalOffset

◆ nGlobalOffset

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::nGlobalOffset

◆ nGroupOffset

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::nGroupOffset

◆ nLocalOffset

template<typename StorageIndex >
const StorageIndex Eigen::TensorSycl::internal::ThreadProperties< StorageIndex >::nLocalOffset

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