-
Notifications
You must be signed in to change notification settings - Fork 576
Executorch compilation error #1602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, could you follow the instruction in https://github.com/pytorch/executorch/blob/main/backends/qualcomm/setup.md or try https://github.com/pytorch/executorch/blob/main/backends/qualcomm/scripts/build.sh as an alternative. We will update the outdated documents, thanks. |
Were you able to follow documentations and instructions in the latest main branch as @haowhsu-quic recommended, by any chance? is it happening only if you try to do cross compilation to QNN? Does it happen if you just run on your locally without any QNN delegation? cc @larryliu0820 in case you are interested in the out_variant error for _cslt_sparse_mm_search |
@podraco for the |
Thanks for your patience, i've been working in other tasks and time flew away, so far i'm using the There is a small error in the file, in step three The document should specify that the i'm still doing some work and recompiling everything using the instructions @haowhsu-quic sent me. i'll keep you updated if i find any issue, thanks!!! |
Now it gets odd. The command It is expected to be run at But the file: The file expects that the Which is not yet installed anywhere. Only dirty available from So, we should run this from
after the small change, the command can run, but I face this "new" error: Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "$EXECUTORCH_ROOT/examples/qualcomm/scripts/export_example.py", line 4, in <module>
from executorch.backends.qualcomm.partition.qnn_partitioner import QnnPartitioner
File "$EXECUTORCH_ROOT/backends/qualcomm/partition/qnn_partitioner.py", line 11, in <module>
from executorch.backends.qualcomm.builders import node_visitor
File "$EXECUTORCH_ROOT/backends/qualcomm/builders/__init__.py", line 7, in <module>
from . import (
File "$EXECUTORCH_ROOT/backends/qualcomm/builders/node_visitor.py", line 14, in <module>
from executorch.exir.dialects._ops import ops as exir_ops
File "$EXECUTORCH_ROOT/exir/__init__.py", line 9, in <module>
from executorch.exir.capture import (
File "$EXECUTORCH_ROOT/exir/capture/__init__.py", line 9, in <module>
from executorch.exir.capture._capture import (
File "$EXECUTORCH_ROOT/exir/capture/_capture.py", line 14, in <module>
from executorch.exir.capture._config import CaptureConfig
File "$EXECUTORCH_ROOT/exir/capture/_config.py", line 12, in <module>
from executorch.exir.passes import MemoryPlanningPass, ToOutVarPass
File "$EXECUTORCH_ROOT/exir/passes/__init__.py", line 19, in <module>
from executorch.exir import control_flow, memory, memory_planning
File "$EXECUTORCH_ROOT/exir/memory_planning.py", line 20, in <module>
from executorch.exir.delegate import executorch_call_delegate
File "$EXECUTORCH_ROOT/exir/delegate.py", line 119, in <module>
@executorch_call_delegate.py_functionalize_impl
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'HigherOrderOperator' object has no attribute 'py_functionalize_impl' which may be due to a different version from torch, as larryliu0820 suggested. i'll look it up a little more. |
so, i updated torch to the latest dev available and it seems it has higherorderoperator now, i believe the files never check the torch version, so we can't tell for sure the minimum version required to run them. |
That's a good feedback. We will make enhancements to check for the version |
torch version is pinned now. Closing this issue. |
greetings, i've been following the tutorials and other documentation to try and build executorch, but i faced multiple issues, right now, the issue i'm facing is that _cslt_sparse_mm_search is throwing me an error on compilation, this might be due to some error on typing. which can mean that there is an issue with versioning.
This is the command i use when i try to build the executorch for linux X86_64
This is the command i use after configuring the package to build for android (aarch64)
These are the documents i followed.
https://pytorch.org/executorch/stable/build-run-qualcomm-ai-engine-direct-backend.html
https://pytorch.org/executorch/stable/getting-started-setup.html#building-a-runtime
https://pytorch.org/executorch/stable/runtime-build-and-cross-compilation.html
this is the output i'm getting.
In both cases, it's the same file that throwing me an error, does anybody know why would this happen?
The build folder for Linux x 86_64 is located at
$EXECUTORCH/build_x86_64
The build folder for android is located at
$EXECUTORCH/build_android
The text was updated successfully, but these errors were encountered: