This is an automated email from the ASF dual-hosted git repository.

cbalint13 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new a8420043cf [BugFix] Fix exception when tvm not built with llvm support 
(#18087)
a8420043cf is described below

commit a8420043cf8ccdbb02d98a7fb1c170337e7d1a60
Author: dxtao29 <[email protected]>
AuthorDate: Wed Jun 25 22:45:03 2025 +0800

    [BugFix] Fix exception when tvm not built with llvm support (#18087)
    
    Fix exception when tvm not built with llvm support.
---
 python/tvm/tir/tensor_intrin/__init__.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/python/tvm/tir/tensor_intrin/__init__.py 
b/python/tvm/tir/tensor_intrin/__init__.py
index 7e5a26bdeb..5646554552 100644
--- a/python/tvm/tir/tensor_intrin/__init__.py
+++ b/python/tvm/tir/tensor_intrin/__init__.py
@@ -16,4 +16,8 @@
 # under the License.
 # pylint: disable=unused-import
 """Intrinsics for tensorization."""
-from . import arm_cpu, cuda, rocm, x86, hexagon
+from tvm.runtime import enabled
+from . import cuda
+
+if enabled("llvm"):
+    from . import arm_cpu, x86, rocm, hexagon

Reply via email to