alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
range.hpp
Go to the documentation of this file.
1/* Copyright 2024 René Widera
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6
8
9namespace alpaka::onAcc
10{
11 namespace range
12 {
13 constexpr auto threadsInGrid = internal::IdxRangeLazy{origin::grid, unit::threads};
14 constexpr auto blocksInGrid = internal::IdxRangeLazy{origin::grid, unit::blocks};
15 constexpr auto threadsInBlock = internal::IdxRangeLazy{origin::block, unit::threads};
16
17 constexpr auto linearThreadsInGrid = internal::IdxRangeLazy{origin::grid, unit::threads, linearized};
18 constexpr auto linearBlocksInGrid = internal::IdxRangeLazy{origin::grid, unit::blocks, linearized};
19 /** Range of all warps in a grid. */
20 constexpr auto linearWarpsInGrid = internal::IdxRangeLazy{origin::grid, unit::warps};
21
22 /** Range of all warps in a block. */
23 constexpr auto linearWarpsInBlock = internal::IdxRangeLazy{origin::block, unit::warps};
24 constexpr auto linearThreadsInBlock = internal::IdxRangeLazy{origin::block, unit::threads, linearized};
25
26 /** Range of all threads in a warp. */
27 constexpr auto linearThreadsInWarp = internal::IdxRangeLazy{origin::warp, unit::threads};
28 } // namespace range
29} // namespace alpaka::onAcc
constexpr auto linearThreadsInGrid
Definition range.hpp:17
constexpr auto linearThreadsInBlock
Definition range.hpp:24
constexpr auto linearWarpsInGrid
Range of all warps in a grid.
Definition range.hpp:20
constexpr auto linearBlocksInGrid
Definition range.hpp:18
constexpr auto linearWarpsInBlock
Range of all warps in a block.
Definition range.hpp:23
constexpr auto linearThreadsInWarp
Range of all threads in a warp.
Definition range.hpp:27
constexpr auto threadsInGrid
Definition range.hpp:13
constexpr auto threadsInBlock
Definition range.hpp:15
constexpr auto blocksInGrid
Definition range.hpp:14
functionality which is usable on the accelerator compute device from within a kernel.
Definition executor.hpp:38
constexpr auto linearized