alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::trait::FunctionAttributes< TAcc, TDev, TKernelFnObj, TArgs > Struct Template Reference

The structure template to access to the functions attributes of a kernel function object. More...

#include <Traits.hpp>

Static Public Member Functions

static ALPAKA_FN_HOST auto getFunctionAttributes ([[maybe_unused]] TDev const &dev, [[maybe_unused]] TKernelFnObj const &kernelFn, [[maybe_unused]] TArgs &&... args) -> alpaka::KernelFunctionAttributes
 

Detailed Description

template<typename TAcc, typename TDev, typename TKernelFnObj, typename... TArgs>
struct alpaka::trait::FunctionAttributes< TAcc, TDev, TKernelFnObj, TArgs >

The structure template to access to the functions attributes of a kernel function object.

Template Parameters
TAccThe accelerator type
TKernelFnObjKernel function object type.
TArgsKernel function object argument types as a parameter pack.

Definition at line 78 of file Traits.hpp.

Member Function Documentation

◆ getFunctionAttributes()

template<typename TAcc , typename TDev , typename TKernelFnObj , typename... TArgs>
static ALPAKA_FN_HOST auto alpaka::trait::FunctionAttributes< TAcc, TDev, TKernelFnObj, TArgs >::getFunctionAttributes ( [[maybe_unused] ] TDev const &  dev,
[[maybe_unused] ] TKernelFnObj const &  kernelFn,
[[maybe_unused] ] TArgs &&...  args 
) -> alpaka::KernelFunctionAttributes
inlinestatic
Parameters
devThe device instance
kernelFnThe kernel function object which should be executed.
argsThe kernel invocation arguments.
Returns
KernelFunctionAttributes data structure instance. The default version always returns the instance with fields which are set to zero.

Definition at line 85 of file Traits.hpp.


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