mehrdadh commented on a change in pull request #10311:
URL: https://github.com/apache/tvm/pull/10311#discussion_r816057421
##########
File path: python/tvm/contrib/hexagon/hexagon.py
##########
@@ -248,3 +262,24 @@ def transform(func, mod, ctx):
def ir_lower_vtcm_pass():
return [(3, ir_lower_vtcm())]
+
+@register_func("tvm.contrib.hexagon.hexagon.aot_export")
+def aot_export(so_name, files, **kwargs):
+ tvm_dir = pathlib.Path(os.path.dirname(os.path.realpath(__file__))) / ".."
/ ".." / ".." / ".."
+ options = [
+ f"-I{tvm_dir / 'include'}",
+ f"-I{tvm_dir / '3rdparty' / 'dlpack' / 'include'}",
+ f"-I{tvm_dir / '3rdparty' / 'dmlc-core' / 'include'}",
+ f"-I{tvm_dir / 'src' / 'runtime' / 'hexagon' / 'android' / 'sim' /
'driver'}",
Review comment:
that's right. Will fix this before changing PR to ready for review.
--
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]