DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims > Class Template Reference

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

Inheritance diagram for cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >:
Collaboration diagram for cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >:

Public Member Functions

 HostKernel (KernelType Kernel)
 
void call (const NDRDescT &NDRDesc, HostProfilingInfo *HPI) override
 
chargetPtr () override
 
template<class ArgT = KernelArgType>
detail::enable_if_t< std::is_same< ArgT, void >::value > runOnHost (const NDRDescT &)
 
template<class ArgT = KernelArgType>
detail::enable_if_t< std::is_same< ArgT, sycl::id< Dims > >::value > runOnHost (const NDRDescT &NDRDesc)
 
template<class ArgT = KernelArgType>
detail::enable_if_t< std::is_same< ArgT, item< Dims, false > >::value > runOnHost (const NDRDescT &NDRDesc)
 
template<class ArgT = KernelArgType>
detail::enable_if_t< std::is_same< ArgT, item< Dims, true > >::value > runOnHost (const NDRDescT &NDRDesc)
 
template<class ArgT = KernelArgType>
detail::enable_if_t< std::is_same< ArgT, nd_item< Dims > >::value > runOnHost (const NDRDescT &NDRDesc)
 
template<typename ArgT = KernelArgType>
enable_if_t< std::is_same< ArgT, cl::sycl::group< Dims > >::value > runOnHost (const NDRDescT &NDRDesc)
 
 ~HostKernel ()=default
 
- Public Member Functions inherited from cl::sycl::detail::HostKernelBase
virtual ~HostKernelBase ()=default
 

Friends

class sycl::handler
 

Detailed Description

template<class KernelType, class KernelArgType, int Dims>
class cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >

Definition at line 246 of file cg_types.hpp.

Constructor & Destructor Documentation

◆ HostKernel()

template<class KernelType , class KernelArgType , int Dims>
cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::HostKernel ( KernelType  Kernel)
inline

Definition at line 254 of file cg_types.hpp.

◆ ~HostKernel()

template<class KernelType , class KernelArgType , int Dims>
cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::~HostKernel ( )
default

Member Function Documentation

◆ call()

◆ getPtr()

template<class KernelType , class KernelArgType , int Dims>
char* cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::getPtr ( )
inlineoverridevirtual

Implements cl::sycl::detail::HostKernelBase.

Definition at line 282 of file cg_types.hpp.

◆ runOnHost() [1/6]

template<class KernelType , class KernelArgType , int Dims>
template<class ArgT = KernelArgType>
detail::enable_if_t<std::is_same<ArgT, void>::value> cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::runOnHost ( const NDRDescT )
inline

Definition at line 286 of file cg_types.hpp.

References cl::sycl::detail::runKernelWithoutArg().

◆ runOnHost() [2/6]

template<class KernelType , class KernelArgType , int Dims>
template<class ArgT = KernelArgType>
detail::enable_if_t<std::is_same<ArgT, sycl::id<Dims> >::value> cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::runOnHost ( const NDRDescT NDRDesc)
inline

◆ runOnHost() [3/6]

template<class KernelType , class KernelArgType , int Dims>
template<class ArgT = KernelArgType>
detail::enable_if_t< std::is_same<ArgT, item<Dims, false> >::value> cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::runOnHost ( const NDRDescT NDRDesc)
inline

Definition at line 318 of file cg_types.hpp.

References cl::sycl::detail::NDRDescT::GlobalSize.

◆ runOnHost() [4/6]

template<class KernelType , class KernelArgType , int Dims>
template<class ArgT = KernelArgType>
detail::enable_if_t< std::is_same<ArgT, item<Dims, true> >::value> cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::runOnHost ( const NDRDescT NDRDesc)
inline

◆ runOnHost() [5/6]

template<class KernelType , class KernelArgType , int Dims>
template<class ArgT = KernelArgType>
detail::enable_if_t<std::is_same<ArgT, nd_item<Dims> >::value> cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::runOnHost ( const NDRDescT NDRDesc)
inline

◆ runOnHost() [6/6]

template<class KernelType , class KernelArgType , int Dims>
template<typename ArgT = KernelArgType>
enable_if_t<std::is_same<ArgT, cl::sycl::group<Dims> >::value> cl::sycl::detail::HostKernel< KernelType, KernelArgType, Dims >::runOnHost ( const NDRDescT NDRDesc)
inline

Friends And Related Function Documentation

◆ sycl::handler

template<class KernelType , class KernelArgType , int Dims>
friend class sycl::handler
friend

Definition at line 251 of file cg_types.hpp.


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