GetSimtBlockDim
Function Usage
Obtains the dimension of a SIMT thread block, that is, the number of threads in the thread block of the Vector unit involved in computation. The dimension is represented by the Dim3 structure. Dim3 is a structure that contains three UInt32 fields: x, y, and z. It represents the number of threads in a thread block in the x, y, and z dimensions.
For example, block_dim.x, block_dim.y, and block_dim.z represent the number of threads in the x, y, and z dimensions of a thread block, respectively.
This API is reserved for subsequent functions. Currently, the capability is incomplete. You are not advised to use this API.
Prototype
1 | const Dim3 *GetSimtBlockDim() const |
Parameters
None
Returns
block_dim is returned.
Constraints
None
Examples
1 2 3 4 | ge::graphStatus Tiling4XXX(TilingContext* context) { auto block_dim = context->GetSimtBlockDim(); // ... } |
Parent topic: TilingContext