GetSimtMaxThreadNum

Description

Obtains the maximum number of SIMT threads on the platform.

Prototype

template <typename T>
uint32_t GetSimtMaxThreadNum([[maybe_unused]] const T *context)

Parameters

Parameter

Input/Output

Description

context

Input

Tiling context, of TilingContext or TilingParseContext type.

Return Value

uint32_t: maximum number of SIMT threads on the platform (2048 currently).

Constraints

None.

Example

The following sample code is for reference only. Do not copy and run it.

1
compileInfo->simtMaxThreadNum = GetSimtMaxThreadNum(context_);