DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::NDRDescT Class Reference

#include <CL/sycl/detail/cg_types.hpp>

Collaboration diagram for cl::sycl::detail::NDRDescT:

Public Member Functions

 NDRDescT ()
 
template<int Dims_>
void set (sycl::range< Dims_ > NumWorkItems)
 
template<int Dims_>
void set (sycl::range< Dims_ > NumWorkItems, sycl::id< Dims_ > Offset)
 
template<int Dims_>
void set (sycl::nd_range< Dims_ > ExecutionRange)
 
void set (int Dims_, sycl::nd_range< 3 > ExecutionRange)
 
template<int Dims_>
void setNumWorkGroups (sycl::range< Dims_ > N)
 

Public Attributes

sycl::range< 3 > GlobalSize
 
sycl::range< 3 > LocalSize
 
sycl::id< 3 > GlobalOffset
 
sycl::range< 3 > NumWorkGroups
 Number of workgroups, used to record the number of workgroups from the simplest form of parallel_for_work_group. More...
 
size_t Dims
 

Detailed Description

Definition at line 41 of file cg_types.hpp.

Constructor & Destructor Documentation

◆ NDRDescT()

cl::sycl::detail::NDRDescT::NDRDescT ( )
inline

Definition at line 54 of file cg_types.hpp.

Member Function Documentation

◆ set() [1/4]

void cl::sycl::detail::NDRDescT::set ( int  Dims_,
sycl::nd_range< 3 >  ExecutionRange 
)
inline

◆ set() [2/4]

template<int Dims_>
void cl::sycl::detail::NDRDescT::set ( sycl::nd_range< Dims_ >  ExecutionRange)
inline

◆ set() [3/4]

template<int Dims_>
void cl::sycl::detail::NDRDescT::set ( sycl::range< Dims_ >  NumWorkItems)
inline

◆ set() [4/4]

template<int Dims_>
void cl::sycl::detail::NDRDescT::set ( sycl::range< Dims_ >  NumWorkItems,
sycl::id< Dims_ >  Offset 
)
inline

Definition at line 71 of file cg_types.hpp.

◆ setNumWorkGroups()

template<int Dims_>
void cl::sycl::detail::NDRDescT::setNumWorkGroups ( sycl::range< Dims_ >  N)
inline

Definition at line 104 of file cg_types.hpp.

Member Data Documentation

◆ Dims

◆ GlobalOffset

◆ GlobalSize

◆ LocalSize

◆ NumWorkGroups

sycl::range<3> cl::sycl::detail::NDRDescT::NumWorkGroups

Number of workgroups, used to record the number of workgroups from the simplest form of parallel_for_work_group.

If set, all other fields must be zero

Definition at line 122 of file cg_types.hpp.

Referenced by cl::sycl::detail::adjustNDRangePerKernel(), and cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::call().


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