GetSimtMaxDCacheSize
Description
Obtains the maximum size of the SIMT DCache on the platform, in bytes.
Prototype
template <typename T> uint32_t GetSimtMaxDCacheSize([[maybe_unused]] const T *context)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
context |
Input |
Tiling context, of TilingContext or TilingParseContext type. |
Return Value
uint32_t: maximum size of the DCache for SIMT on the platform (128 x 1024 = 131072 bytes currently).
Constraints
None.
Example
The following sample code is for reference only. Do not copy and run it.
1 | compileInfo->simtMaxDCacheSize = GetSimtMaxDCacheSize(context_); |
Parent topic: platform