alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
ElementIndex.hpp
Go to the documentation of this file.
1#pragma once
2
3namespace alpaka
4{
5
6 /* ElementIndex
7 *
8 * An aggregate that containes the `.global` and `.local` indices of an element along a given dimension.
9 */
10
11 template<typename TIdx>
13 {
14 TIdx global; // Index of the element along a given dimension, relative to the whole problem space.
15 TIdx local; // Index of the element along a given dimension, relative to the current group.
16 };
17
18} // namespace alpaka
The alpaka accelerator library.