diff --git a/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorDistribute.cpp b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorDistribute.cpp index dab08c637d85..d37d624de9c2 100644 --- a/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorDistribute.cpp +++ b/compiler/src/iree/compiler/Codegen/LLVMGPU/LLVMGPUVectorDistribute.cpp @@ -225,9 +225,11 @@ class ContractionVectorLayoutOptions : public VectorLayoutOptions { ShapedType::getNumElements(transfer.getVectorType().getShape()); int64_t flatNumThreads = ShapedType::getNumElements(workgroupSize); if (flatNumElements % flatNumThreads != 0) { - transfer->emitOpError( - "Anchoring on transfer_read with unsupported number of elements (not " - "divisible by workgroup size)"); + transfer->emitOpError() + << "Anchoring on transfer_read with unsupported number of elements " + "(not divisible by workgroup size)" + << ", number of elements: " << flatNumElements + << ", workgroup size: " << flatNumThreads; return failure(); } numElementsPerThread =