tensorflow / mlir-hlo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`tiling_softmax.cc#tilePartialSoftmax: undefined reference to `mlir::gml_st::isSimpleBcastReduction'

makslevental opened this issue · comments

Compiling mlir-hlo as a dep of torch-mlir I get a linker error:

/usr/bin/ld: lib/libGmlStPasses.a(tiling_softmax.cc.o): in function `mlir::gml_st::(anonymous namespace)::tilePartialSoftmax(mlir::TilingInterface, mlir::PatternRewriter&, llvm::function_ref<mlir::FailureOr<mlir::TilingResult> (mlir::Operation*, long)>)':
undefined reference to `mlir::gml_st::isSimpleBcastReduction(mlir::Operation*, long*, mlir::gml_st::SimpleBcastReduction*)'

This symbol is at gml_st/utils/linalg_utils.cc#L43.

Tracking it down, it seems gml_st/transforms/CMakeLists.txt#L61 depends on MLIRGmlStUtils but doesn't actually link it.

cc @powderluv

Should be fixed in 85dc21b.