Represents the dimensions of a CUDA grid, in cases where this is constexpr. More...
#include <GridTraits.hpp>
Static Public Member Functions | |
constexpr static int | NumBlocks () |
Static Public Attributes | |
constexpr static int | Rank = sizeof...(Ds) |
static constexpr sp::Vec< int, Rank > | Dims {Ds...} |
Represents the dimensions of a CUDA grid, in cases where this is constexpr.
Does not contain a BlockTraits
, since you can have a static grid with dynamic block sizes, and vice-versa, just fine. If both are fixed (such as for a blockchained reduction) you'll just need two aliases in your implementation.