Is there a flag to pass to
cmake when building MLIR to specify which public dialects to build along with the MLIR installation?
Running config with:
cmake -G Ninja \
I can see that the build includes
.inc files for each of the public dialects under
Reason I ask is that I am using this current MLIR build as an out-of-tree dependency for a downstream project which requires the
GPUOps library as a build dependency:
Apologies if this question is ill-posed, as I am still learning MLIR and shaky around how dialects are built / linked.
No there isn’t: we’ll build everything. You could script a custom distribution, but in general people are statically linking the libraries they need and that will only pull the minimal amount of things in the final binary.
Thanks for the response!
When building the downstream project using the out-of-tree MLIR build per above, I get this error:
CMake Error at /notebooks/CUDA-CPP/MLIR/llvm-project/build_mlir/lib/cmake/llvm/AddLLVM.cmake:556 (add_dependencies):
The dependency target "MLIRGPUOps" of target "obj.TritonGPUIR" does not
Call Stack (most recent call first):
How would I build
MLIRGPUOps? I can see the
inc files generated for each of the public dialects in my MLIR build directory – I’m assuming
MLIRGPUOps refers to the public