From 7e9f1d63dde6007c9aa59e3d104dc077206e0c20 Mon Sep 17 00:00:00 2001 From: Shanbin Ke Date: Tue, 23 May 2023 12:02:31 -0700 Subject: [PATCH] add print in AsBlasDataType --- xla/service/gpu/matmul_utils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xla/service/gpu/matmul_utils.cc b/xla/service/gpu/matmul_utils.cc index 2942e1f2c99a0..d33081c7610ba 100644 --- a/xla/service/gpu/matmul_utils.cc +++ b/xla/service/gpu/matmul_utils.cc @@ -738,7 +738,8 @@ StatusOr AsBlasDataType(PrimitiveType dtype) { case C128: return se::blas::DataType::kComplexDouble; default: - return InternalError("AsBlasDataType: unsupported type"); + return InternalError("AsBlasDataType: unsupported type: %s", + primitive_util::LowercasePrimitiveTypeName(dtype)); } }