[Mlir-commits] [mlir] 0247564 - [MLIR] Add missing MLIRGPUDialect dep to MLIRSPIRVDialect (#84554)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Mar 20 03:13:57 PDT 2024


Author: Thomas Preud'homme
Date: 2024-03-20T10:13:54Z
New Revision: 0247564c14ffc7f6a13ed9d127e32bfdfbf93a19

URL: https://github.com/llvm/llvm-project/commit/0247564c14ffc7f6a13ed9d127e32bfdfbf93a19
DIFF: https://github.com/llvm/llvm-project/commit/0247564c14ffc7f6a13ed9d127e32bfdfbf93a19.diff

LOG: [MLIR] Add missing MLIRGPUDialect dep to MLIRSPIRVDialect (#84554)

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
```

Added: 
    

Modified: 
    mlir/lib/Dialect/SPIRV/IR/CMakeLists.txt

Removed: 
    


################################################################################
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


        


More information about the Mlir-commits mailing list