alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
layout.hpp
Go to the documentation of this file.
1/* Copyright 2024 Andrea Bocci, René Widera
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
7namespace alpaka::onAcc
8{
9 namespace layout
10 {
11 /** Generates indices scattered based on the number of worker threads for each dimension.*/
12 struct Strided
13 {
14 };
15
16 constexpr auto strided = Strided{};
17
18 /** Indices will be contiguous within each dimension for each worker thread. */
20 {
21 };
22
23 constexpr auto contiguous = Contiguous{};
24
25 /** The index layout will automatically selected based on the executor. */
26 struct Optimized
27 {
28 };
29
30 constexpr auto optimized = Optimized{};
31 } // namespace layout
32} // namespace alpaka::onAcc
constexpr auto strided
Definition layout.hpp:16
constexpr auto optimized
Definition layout.hpp:30
constexpr auto contiguous
Definition layout.hpp:23
functionality which is usable on the accelerator compute device from within a kernel.
Definition executor.hpp:38
Indices will be contiguous within each dimension for each worker thread.
Definition layout.hpp:20
The index layout will automatically selected based on the executor.
Definition layout.hpp:27
Generates indices scattered based on the number of worker threads for each dimension.
Definition layout.hpp:13