[Mlir-commits] [mlir] [MLIR][CMake] Downgrade ocloc not found diagnostic from WARNING to STATUS (PR #198296)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon May 18 06:24:55 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Harrison Hao (harrisonGPU)

<details>
<summary>Changes</summary>

When ocloc is not found, the CMake configuration emits a WARNING which
can be noisy for users who have no interest in Intel XeVM native binary
compilation (e.g., those targeting only AMDGPU or NVPTX). Downgrade the
diagnostic to STATUS since this is an expected configuration when ocloc
is not installed. 
For example:
```bash
CMake Warning at /llvm-project/mlir/lib/Target/LLVM/CMakeLists.txt:246 (message):
ocloc not found, MLIRXeVMTarget will not be able to use ocloc for native
binary compilation.
```

---
Full diff: https://github.com/llvm/llvm-project/pull/198296.diff


1 Files Affected:

- (modified) mlir/lib/Target/LLVM/CMakeLists.txt (+1-1) 


``````````diff
diff --git a/mlir/lib/Target/LLVM/CMakeLists.txt b/mlir/lib/Target/LLVM/CMakeLists.txt
index f9e02bbba9117..bd1d66d1e43af 100644
--- a/mlir/lib/Target/LLVM/CMakeLists.txt
+++ b/mlir/lib/Target/LLVM/CMakeLists.txt
@@ -243,7 +243,7 @@ if (NOT LLVM_BUILD_LLVM_DYLIB)
     set(MLIR_XEVM_OCLOC_LIB_AVAILABLE 1)
   else()
     set(MLIR_XEVM_OCLOC_LIB_AVAILABLE 0)
-    message(WARNING "ocloc not found, MLIRXeVMTarget will not be able to use ocloc for native binary compilation.")
+    message(STATUS "ocloc not found, MLIRXeVMTarget will not be able to use ocloc for native binary compilation.")
   endif()
 else()
   set(MLIR_XEVM_OCLOC_LIB_AVAILABLE 0)

``````````

</details>


https://github.com/llvm/llvm-project/pull/198296


More information about the Mlir-commits mailing list