alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
functor.hpp File Reference
#include "alpaka/core/common.hpp"
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

struct  alpaka::ScalarFunc< T_Func >
 Marks a functor that can only be executed with scalar types and not SIMD packages. More...
struct  alpaka::StencilFunc< T_Func >
 Marks a functor which supports SimdPtr as arguments. More...

Namespaces

namespace  alpaka
 main alpaka namespace.

Functions

template<typename T_Func>
ALPAKA_FN_HOST_ACC alpaka::ScalarFunc (T_Func &&) -> ScalarFunc< T_Func >
template<typename T_Func>
ALPAKA_FN_HOST_ACC alpaka::StencilFunc (T_Func &&) -> StencilFunc< T_Func >
template<typename T_Acc, typename T_Functor, typename... T_Args>
constexpr auto alpaka::callFunctor (T_Acc const &acc, T_Functor &&functor, T_Args &&... args)
 Execute the functor with or without an accelerator as first argument.