-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[MLIR] Add missing MLIRGPUDialect dep to MLIRSPIRVDialect #84554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This fixes a failure when doing a clean build of lib/libMLIRSPIRVDialect.a only.
@llvm/pr-subscribers-mlir @llvm/pr-subscribers-mlir-spirv Author: Thomas Preud'homme (RoboTux) ChangesThis fixes a failure when doing a clean build of Full diff: https://github.com/llvm/llvm-project/pull/84554.diff 1 Files Affected:
diff --git a/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt b/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt
index 2b5cedafae1e85..b185264211474f 100644
--- a/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt
+++ b/mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt
@@ -27,6 +27,7 @@ add_mlir_dialect_library(MLIRSPIRVDialect
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/SPIRV
DEPENDS
+ MLIRGPUDialect
MLIRSPIRVAttributeIncGen
MLIRSPIRVAttrUtilsGen
MLIRSPIRVAvailabilityIncGen
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spir-v dialect doesn't depend on the gpu dialect, no?
(I'm just surprised that this is the case, but maybe I missed something. If we do have a dependency, could you provide an example?) |
What does the failure look like? |
I can't seem to reproduce with ninja at the moment but I did yesterday when I was submitting the patch series. I suspect it might be exposed by some of the other patches in the series. I'm trying to find out which one exactly. |
I can reproduce this using The compiler error looks as follows:
The SPIR-V dialect doesn't technically depend on the GPU Dialect but rather the interface header being generated by TableGen for the purpose of registering the promise here:
|
Ah that's it, I forgot that bash's * doesn't match files starting with a dot. Removing the .ninja_deps I can now reproduce again. I've updated the description again accordingly. Thanks! |
Ping? |
This fixes the following failure when doing a clean build (in particular no .ninja* lying around) of lib/libMLIRSPIRVDialect.a only: ``` mlir/lib/Dialect/SPIRV/IR/SPIRVDialect.cpp:17: mlir/include/mlir/Dialect/GPU/IR/CompilationInterfaces.h:120:10: fatal error: mlir/Dialect/GPU/IR/CompilationAttrInterfaces.h.inc: No such file or directory ```
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRSPIRVDialect.a only: