diff --git a/flang/runtime/matmul-transpose.cpp b/flang/runtime/matmul-transpose.cpp --- a/flang/runtime/matmul-transpose.cpp +++ b/flang/runtime/matmul-transpose.cpp @@ -110,7 +110,8 @@ int yRank{y.rank()}; int resRank{xRank + yRank - 2}; if (xRank * yRank != 2 * resRank) { - terminator.Crash("MATMUL: bad argument ranks (%d * %d)", xRank, yRank); + terminator.Crash( + "MATMUL-TRANSPOSE: bad argument ranks (%d * %d)", xRank, yRank); } SubscriptValue extent[2]{x.GetDimension(1).Extent(), resRank == 2 ? y.GetDimension(1).Extent() : 0}; @@ -122,7 +123,8 @@ } if (int stat{result.Allocate()}) { terminator.Crash( - "MATMUL: could not allocate memory for result; STAT=%d", stat); + "MATMUL-TRANSPOSE: could not allocate memory for result; STAT=%d", + stat); } } else { RUNTIME_CHECK(terminator, resRank == result.rank()); @@ -134,7 +136,8 @@ } SubscriptValue n{x.GetDimension(0).Extent()}; if (n != y.GetDimension(0).Extent()) { - terminator.Crash("MATMUL: unacceptable operand shapes (%jdx%jd, %jdx%jd)", + terminator.Crash( + "MATMUL-TRANSPOSE: unacceptable operand shapes (%jdx%jd, %jdx%jd)", static_cast(x.GetDimension(0).Extent()), static_cast(x.GetDimension(1).Extent()), static_cast(y.GetDimension(0).Extent()), @@ -163,7 +166,8 @@ } // else V*M -> V (not allowed because TRANSPOSE() is only defined for rank // 1 matrices - terminator.Crash("MATMUL: unacceptable operand shapes (%jdx%jd, %jdx%jd)", + terminator.Crash( + "MATMUL-TRANSPOSE: unacceptable operand shapes (%jdx%jd, %jdx%jd)", static_cast(x.GetDimension(0).Extent()), static_cast(n), static_cast(y.GetDimension(0).Extent()), @@ -231,7 +235,8 @@ } } else { // V*M -> V // TRANSPOSE(V) not allowed by fortran standard - terminator.Crash("MATMUL: unacceptable operand shapes (%jdx%jd, %jdx%jd)", + terminator.Crash( + "MATMUL-TRANSPOSE: unacceptable operand shapes (%jdx%jd, %jdx%jd)", static_cast(x.GetDimension(0).Extent()), static_cast(n), static_cast(y.GetDimension(0).Extent()), @@ -259,7 +264,7 @@ CppTypeFor>(result, x, y, terminator); } } - terminator.Crash("MATMUL: bad operand types (%d(%d), %d(%d))", + terminator.Crash("MATMUL-TRANSPOSE: bad operand types (%d(%d), %d(%d))", static_cast(XCAT), XKIND, static_cast(YCAT), YKIND); } };