alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onAcc::worker Namespace Reference

Variables

constexpr auto allThreads = WorkerGroup{origin::thread, unit::threads}
 Represent the identity of the executor thread.
constexpr auto blocksInGrid = WorkerGroup{origin::grid, unit::blocks}
constexpr auto linearBlocksInGrid = WorkerGroup{origin::grid, unit::blocks, linearized}
constexpr auto linearThreadsInBlock = WorkerGroup{origin::block, unit::threads, linearized}
constexpr auto linearThreadsInGrid = WorkerGroup{origin::grid, unit::threads, linearized}
constexpr auto linearThreadsInWarp = WorkerGroup{origin::warp, unit::threads}
 Representation of all threads in a warp as a linearized worker group.
constexpr auto linearWarpsInBlock = WorkerGroup{origin::block, unit::warps}
 Representation of all warps in a thread block as a linearized worker group.
constexpr auto linearWarpsInGrid = WorkerGroup{origin::grid, unit::warps}
 Representation of all warps in the grid as a linearized worker group.
constexpr auto threadsInBlock = WorkerGroup{origin::block, unit::threads}
constexpr auto threadsInGrid = WorkerGroup{origin::grid, unit::threads}

Variable Documentation

◆ allThreads

auto alpaka::onAcc::worker::allThreads = WorkerGroup{origin::thread, unit::threads}
constexpr

Represent the identity of the executor thread.

All threads are in the same worker group. If used with onAcc::makeIdxMap(), any thread is getting all indices of the range.

Definition at line 134 of file WorkerGroup.hpp.

◆ blocksInGrid

auto alpaka::onAcc::worker::blocksInGrid = WorkerGroup{origin::grid, unit::blocks}
constexpr

Definition at line 106 of file WorkerGroup.hpp.

◆ linearBlocksInGrid

auto alpaka::onAcc::worker::linearBlocksInGrid = WorkerGroup{origin::grid, unit::blocks, linearized}
constexpr

Definition at line 127 of file WorkerGroup.hpp.

◆ linearThreadsInBlock

auto alpaka::onAcc::worker::linearThreadsInBlock = WorkerGroup{origin::block, unit::threads, linearized}
constexpr

Definition at line 111 of file WorkerGroup.hpp.

◆ linearThreadsInGrid

auto alpaka::onAcc::worker::linearThreadsInGrid = WorkerGroup{origin::grid, unit::threads, linearized}
constexpr

Definition at line 112 of file WorkerGroup.hpp.

◆ linearThreadsInWarp

auto alpaka::onAcc::worker::linearThreadsInWarp = WorkerGroup{origin::warp, unit::threads}
constexpr

Representation of all threads in a warp as a linearized worker group.

Definition at line 110 of file WorkerGroup.hpp.

◆ linearWarpsInBlock

auto alpaka::onAcc::worker::linearWarpsInBlock = WorkerGroup{origin::block, unit::warps}
constexpr

Representation of all warps in a thread block as a linearized worker group.

Attention
If the number of threads in a block is not a multiple of the warp size you can have partial warps.

Definition at line 119 of file WorkerGroup.hpp.

◆ linearWarpsInGrid

auto alpaka::onAcc::worker::linearWarpsInGrid = WorkerGroup{origin::grid, unit::warps}
constexpr

Representation of all warps in the grid as a linearized worker group.

Attention
Since a thread block is not required to have as many threads a warp has, you can not assume that number of warps * warp size is the total number of threads.

Definition at line 125 of file WorkerGroup.hpp.

◆ threadsInBlock

auto alpaka::onAcc::worker::threadsInBlock = WorkerGroup{origin::block, unit::threads}
constexpr

Definition at line 107 of file WorkerGroup.hpp.

◆ threadsInGrid

auto alpaka::onAcc::worker::threadsInGrid = WorkerGroup{origin::grid, unit::threads}
constexpr

Definition at line 105 of file WorkerGroup.hpp.