alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
interface.hpp File Reference

On some constexpr function signatures ALPAKA_FN_HOST_ACC is required for CUDA; otherwise a __host__ function called from a __host__ __device__ context triggers a warning and the generated code is wrong. More...

Go to the source code of this file.

Namespaces

namespace  alpaka
 main alpaka namespace.
namespace  alpaka::onAcc
 functionality which is usable on the accelerator compute device from within a kernel.
namespace  alpaka::onAcc::concepts

Concepts

concept  alpaka::onAcc::concepts::IdxMapping
concept  alpaka::onAcc::concepts::IdxTraversing

Functions

range‑based loop indexable index container
template<concepts::IdxTraversing T_Traverse = traverse::Flat, concepts::IdxMapping T_IdxLayout = layout::Optimized>
ALPAKA_FN_HOST_ACC constexpr auto alpaka::onAcc::makeIdxMap (auto const &acc, auto const workGroup, auto const range, alpaka::concepts::BoundaryDirection auto const &bd, T_Traverse traverse=T_Traverse{}, T_IdxLayout idxLayout=T_IdxLayout{})
 Specialization for an index container with a given boundary direction of the volume described by the range.
template<typename T_ScalarIdxType, concepts::IdxTraversing T_Traverse = traverse::Flat, concepts::IdxMapping T_IdxLayout = layout::Optimized>
ALPAKA_FN_HOST_ACC constexpr auto alpaka::onAcc::makeIdxMap (auto const &acc, auto const workGroup, auto const range, T_Traverse traverse=T_Traverse{}, T_IdxLayout idxLayout=T_IdxLayout{})
 Creates an index container.
template<concepts::IdxTraversing T_Traverse = traverse::Flat, concepts::IdxMapping T_IdxLayout = layout::Optimized>
ALPAKA_FN_HOST_ACC constexpr auto alpaka::onAcc::makeIdxMap (auto const &acc, auto const workGroup, auto const range, T_Traverse traverse=T_Traverse{}, T_IdxLayout idxLayout=T_IdxLayout{})
 Creates an index container.

Detailed Description

On some constexpr function signatures ALPAKA_FN_HOST_ACC is required for CUDA; otherwise a __host__ function called from a __host__ __device__ context triggers a warning and the generated code is wrong.

Definition in file interface.hpp.