fzi-peccia commented on code in PR #18182:
URL: https://github.com/apache/tvm/pull/18182#discussion_r2291153641


##########
python/tvm/meta_schedule/tune_context.py:
##########
@@ -28,6 +28,7 @@
 from tvm.runtime import Object
 from tvm.target import Target
 from tvm.tir import PrimFunc, Schedule
+from tvm.target.codegen import target_has_features

Review Comment:
   Fixed in 9f363b5519d6b59e59505fa17b045781b30a744c



##########
python/tvm/meta_schedule/tune_context.py:
##########
@@ -117,6 +118,13 @@ def __init__(
         if target is not None:
             if not isinstance(target, Target):
                 target = Target(target)
+            if "riscv_cpu" in target.keys:
+                if target_has_features("v", target):
+                    # Because the RVV intrinsics depend on the target, we 
register them here
+                    # pylint: disable=import-outside-toplevel
+                    from tvm.tir.tensor_intrin.riscv_cpu import 
register_riscv_tensor_intrinsics
+
+                    register_riscv_tensor_intrinsics(target)

Review Comment:
   Fixed in 9f363b5519d6b59e59505fa17b045781b30a744c



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