27constexpr int TEMP_BYTES = 4096;
28constexpr int TPB = 512;
39constexpr int kNumSupportedChunkBytes =
40 sizeof(kSupportedChunkBytes) /
sizeof(kSupportedChunkBytes[0]);
51constexpr bool isSupportedChunkBytes(
int bytes) {
52 return bytes == 4096 || bytes == 8192 || bytes == 16384;
59 static_assert(Bytes == 4096 || Bytes == 8192 || Bytes == 16384,
60 "chunk-cooperative chunk size must be one of kSupportedChunkBytes");
61 static constexpr int CHUNK_BYTES = Bytes;
62 static constexpr int NELEM = Bytes / 4;
63 static constexpr int NPP = NELEM / 32;
constexpr int kSupportedChunkBytes[]
Definition chunk_geometry.h:38
Per-chunk-size derived geometry, instantiated once per supported size.
Definition chunk_geometry.h:58