Skip to content

Commit 8b231d7

Browse files
committed
[mlir] Fix build break with shared libraries
When project components are built as separate shared libraries, a lot of errors appear about undefined symbols, e.g. ``` /usr/bin/ld: CMakeFiles/obj.MLIRGPUPipelines.dir/GPUToNVVMPipeline.cpp.o : in function `(anonymous namespace)::buildCommonPassPipeline(mlir::OpPa ssManager&, (anonymous namespace)::GPUToNVVMPipelineOptions const&)': GPUToNVVMPipeline.cpp:(.text._ZN12_GLOBAL__N_123buildCommonPassPipelineE RN4mlir13OpPassManagerERKNS_24GPUToNVVMPipelineOptionsE+0xa5): undefined reference to `mlir::createConvertLinalgToLoopsPass()' ``` Add the necessary dependencies to Dialect/GPU/Pipelines/CMakeLists.txt
1 parent b33a131 commit 8b231d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mlir/lib/Dialect/GPU/Pipelines/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,14 @@ add_mlir_dialect_library(MLIRGPUPipelines
99
MLIRFuncDialect
1010
MLIRPass
1111
MLIRTransforms
12+
MLIRLinalgTransforms
13+
MLIRAffineToStandard
14+
MLIRGPUToNVVMTransforms
15+
MLIRIndexToLLVM
16+
MLIRMathToLLVM
17+
MLIRNVGPUToNVVM
18+
MLIRNVVMToLLVM
19+
MLIRReconcileUnrealizedCasts
20+
MLIRSCFToControlFlow
21+
MLIRVectorToSCF
1222
)

0 commit comments

Comments
 (0)