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