You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/08/17 14:32:25 UTC

[GitHub] [tvm] cconvey commented on a diff in pull request #12397: [HEXAGON] Auto-vectorization (fp16) for v68

cconvey commented on code in PR #12397:
URL: https://github.com/apache/tvm/pull/12397#discussion_r948019685


##########
python/tvm/target/target.py:
##########
@@ -724,6 +724,12 @@ def create_llvm_options(cpu_ver, config):  # pylint: disable=unused-argument
 
         llvm_options = config["llvm_options"]
 
+        # To enable auto-vectorization for v68 target added the below llvm-option by default
+        if arch_version == 68:
+            if not llvm_options:
+                llvm_options = ""
+            llvm_options += " -force-hvx-float"
+

Review Comment:
   Does this flag impose any new requirements regarding which LLVM versions TVM needs?



-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org