MakeCoord
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
Function
Packages the input data into the Coord data structure.
Prototype
template <typename... Ts> __aicore__ inline constexpr Coord<Ts...> MakeCoord(Ts const&... t)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
t |
Input |
Formal parameter package of the input data type. The usage and restrictions are the same as those of Std::tuple. The input data type can be size_t or Std::Int. |
Returns
Coord structure type (alias of the Std::tuple type).
Restrictions
None
Example
1 2 3 | auto blockCoordM = Std::Int<11>{}; auto blockCoordN = Std::Int<12>{}; auto coord = AscendC::MakeCoord(blockCoordM, blockCoordN); |
Parent topic: Coordinate