@@ -125,7 +125,7 @@ std::tuple<int, int, int> ParseMMAShape(const std::string& str) {
125125 << " Cannot parse MMA shape " << str;
126126 int m = std::stoi (str.substr (pos_m + 1 , pos_n - pos_m - 1 )),
127127 n = std::stoi (str.substr (pos_n + 1 , pos_k - pos_n - 1 )), k = std::stoi (str.substr (pos_k + 1 ));
128- return { m, n, k} ;
128+ return std::make_tuple ( m, n, k) ;
129129}
130130
131131/* !
@@ -142,16 +142,16 @@ inline std::tuple<char, int, std::string> FragmentAttrs(DataType dtype) {
142142 case DataType::kFloat16 : // .f16x2 register
143143 case DataType::kBFloat16 :
144144 case DataType::kTensorFloat32 :
145- return { ' r' , 32 , " (unsigned *)" } ;
145+ return std::make_tuple ( ' r' , 32 , " (unsigned *)" ) ;
146146 case DataType::kInt32 :
147- return { ' r' , 32 , " (int *)" } ;
147+ return std::make_tuple ( ' r' , 32 , " (int *)" ) ;
148148 case DataType::kFloat32 :
149- return { ' f' , 32 , " (float *)" } ;
149+ return std::make_tuple ( ' f' , 32 , " (float *)" ) ;
150150 case DataType::kFloat64 :
151- return { ' d' , 64 , " (double *)" } ;
151+ return std::make_tuple ( ' d' , 64 , " (double *)" ) ;
152152 default :
153153 LOG (FATAL) << DTypeToString (dtype) << " is not matrix data type in MMA." ;
154- return { ' \0 ' , 0 , " " } ;
154+ return std::make_tuple ( ' \0 ' , 0 , " " ) ;
155155 }
156156}
157157
@@ -250,7 +250,7 @@ inline std::tuple<std::string, std::string, std::string> get_mma_sp_operands(
250250 outputs << " \" =" << std::get<0 >(frag_attr_c) << " \" ((" << std::get<2 >(frag_attr_c) << " (D))["
251251 << i << " ])" ;
252252 }
253- return { templates.str (), inputs.str (), outputs.str ()} ;
253+ return std::make_tuple ( templates.str (), inputs.str (), outputs.str ()) ;
254254}
255255
256256std::string PrintMMASparseAssembly (const std::string& shape, const std::string& A_layout,
0 commit comments