cbalint13 commented on code in PR #18087:
URL: https://github.com/apache/tvm/pull/18087#discussion_r2161986807


##########
python/tvm/tir/tensor_intrin/__init__.py:
##########
@@ -16,4 +16,10 @@
 # under the License.
 # pylint: disable=unused-import
 """Intrinsics for tensorization."""
-from . import arm_cpu, cuda, rocm, x86, hexagon
+import tvm
+from . import cuda
+
+if hasattr(tvm.target.codegen, "llvm_version_major"):

Review Comment:
   Something safer & better check would be ```tvm.runtime.enabled("llvm")```
   
https://github.com/apache/tvm/blob/main/python/tvm/tir/build.py#L153C29-L153C56
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to