Skip to content

gcc compilation issue in LinalgTileAndDistributePass.cpp blocking release #4543

Closed

Description

@stellaraccident
2021-01-16T11:41:53.2946034Z /project/main_checkout/iree/compiler/Conversion/LinalgToLLVM/LinalgTileAndDistributePass.cpp: In member function ‘mlir::LogicalResult mlir::iree_compiler::{anonymous}::TileToCPUThreads<LinalgOpTy>::matchAndRewrite(mlir::Operation*, mlir::PatternRewriter&) const’:
2021-01-16T11:41:53.2948903Z /project/main_checkout/iree/compiler/Conversion/LinalgToLLVM/LinalgTileAndDistributePass.cpp:68:56: error: cannot convert ‘llvm::SmallVector<mlir::Value, 4>’ to ‘mlir::linalg::TiledLinalgOp&’
2021-01-16T11:41:53.2950391Z    68 |         failed(Base::matchAndRewriteBase(op, rewriter, tensorResults)) ||
2021-01-16T11:41:53.2951033Z       |                                                        ^~~~~~~~~~~~~
2021-01-16T11:41:53.2951402Z       |                                                        |
2021-01-16T11:41:53.2951912Z       |                                                        llvm::SmallVector<mlir::Value, 4>
2021-01-16T11:41:53.2952817Z In file included from /project/main_checkout/iree/compiler/Conversion/CodegenUtils/MatmulCodegenStrategy.h:24,
2021-01-16T11:41:53.2954170Z                  from /project/main_checkout/iree/compiler/Conversion/LinalgToLLVM/LinalgTileAndDistributePass.cpp:18:
2021-01-16T11:41:53.2956831Z /project/main_checkout/third_party/llvm-project/mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h:417:52: note:   initializing argument 3 of ‘mlir::LogicalResult mlir::linalg::LinalgBaseTilingPattern::matchAndRewriteBase(mlir::Operation*, mlir::PatternRewriter&, mlir::linalg::TiledLinalgOp&) const’
2021-01-16T11:41:53.2958474Z   417 |                                     TiledLinalgOp &result) const;
2021-01-16T11:41:53.2958948Z       |                                     ~~~~~~~~~~~~~~~^~~~~~

Activity

  1. stellaraccident commented on Jan 16, 2021

    @stellaraccident
    CollaboratorAuthor

    Only affects gcc 9.3.1 (in the manylinux container), not gcc 9.3.0 (common on ubuntu).

  2. MaheshRavishankar commented on Jan 16, 2021

    @MaheshRavishankar
    Collaborator

    That seems like the submodules are not in sync. Weird that it works with some compilers

  3. stellaraccident commented on Jan 16, 2021

    @stellaraccident
    CollaboratorAuthor

    Yes, something is definitely quite wrong here. Building with this specific compiler, in the container, from a source directory mapped to the same directory it works with on the host... in the container fails with that error. On the host does not. Either something environmental or some deep C++-ism that I can't spot is allowing this to work on the others.

  4. stellaraccident commented on Jan 16, 2021

    @stellaraccident
    CollaboratorAuthor

    I don't think this is a submodule issue: verified head and history and surrounding this area is consistent. I think this is just a fragile C++ situation (I can't figure out why it isn't failing on every compiler/what it is supposed to be doing).

  5. added a commit that references this issue on Jan 16, 2021
    e9ee05a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions