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:36:46 UTC

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

kparzysz-quic commented on code in PR #12397:
URL: https://github.com/apache/tvm/pull/12397#discussion_r948025119


##########
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:
   It will work with any LLVM version that supports v69.  It's fine to use it.



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