SetSimtBlockDim

Function Usage

Sets 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.

Prototype

1
ge::graphStatus SetSimtBlockDim(const Dim3 &block_dim)

Parameters

Parameter

Input/Output

Description

block_dim

Input

Dimension of a thread block, 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.

Returns

ge::GRAPH_SUCCESS on success.

For details about the definition of graphStatus, see ge::graphStatus.

Constraints

None

Examples

1
2
3
4
5
gert::Dim3 block_dim(2, 3);
ge::graphStatus Tiling4XXX(TilingContext* context) {
  auto ret = context->SetSimtBlockDim(block_dim);
  // ...
}