Dim3

The Dim3 structure is defined as follows:

1
2
3
4
5
struct Dim3 {
  uint32_t x, y, z;
  Dim3(const uint32_t dim3_x, const uint32_t dim3_y = 1, const uint32_t dim3_z = 1) : x(dim3_x), y(dim3_y), z(dim3_z) {
  }
};

Dim3 is a structure that contains three uint32 fields: x, y, and z. In SIMT, it can represent the number of threads in a block along the x, y, and z dimensions, or the number of blocks in a grid along the x, y, and z dimensions.