csullivan commented on a change in pull request #8823:
URL: https://github.com/apache/tvm/pull/8823#discussion_r695962970
##########
File path: python/tvm/target/target.py
##########
@@ -413,79 +413,118 @@ def bifrost(model="unknown", options=None):
return Target(" ".join(["opencl"] + opts))
-def hexagon(cpu_ver="v66", sim_args=None, llvm_args=None, hvx=128):
+def hexagon(cpu_ver="v66", **kwargs):
"""Returns a Hexagon target.
Parameters
----------
- cpu_ver : str
+ cpu_ver : str (default: "v66")
Review comment:
@kparzysz-quic is it possible to query hexagon to return some of these
device specific attributes? E.g. the architecture rev, vector width, available
memory.
There is some desire to add general support to the DeviceAPI to query device
specific parameters to use to build a target which can then influence lowering
and codegen. The Vulkan target already achieves this via a packed function, but
it could be extended to support all DeviceAPI subclasses. But this will only
help if the hexagon sdk supports device attribute querying. If so, we can
consider revisiting the target construction after converging on a proposal for
the above change to the Device API.
--
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]