GetSimtGridDim
Function Usage
Obtains the dimension of a SIMT thread grid, that is, the number of thread blocks in the thread grid 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 thread blocks in a thread grid in the x, y, and z dimensions.
For example, block_dim.x, block_dim.y, and block_dim.z represent the number of thread blocks in the x, y, and z dimensions of a thread grid, respectively.
Prototype
1 | const Dim3 *GetSimtGridDim() const |
Parameters
None
Returns
grid_dim is returned.
Constraints
None
Examples
1 2 3 4 | ge::graphStatus Tiling4XXX(TilingContext* context) { auto grid_dim = context->GetSimtGridDim(); // ... } |
Parent topic: TilingContext