-
Notifications
You must be signed in to change notification settings - Fork 698
Description
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
cmake --build cmake-out -j9
This is the command i use after configuring the package to build for android (aarch64)
cmake --build . -j8
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.
[ 31%] Generating code for kernel registration
[ 97%] Built target portable_kernels
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/gen_executorch.py", line 943, in <module>
main()
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/gen_executorch.py", line 882, in main
parsed_yaml, custom_ops_parsed_yaml = parse_yaml_files(
^^^^^^^^^^^^^^^^^
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/gen_executorch.py", line 747, in parse_yaml_files
translate_native_yaml(
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/gen_executorch.py", line 599, in translate_native_yaml
native_functions, persisted_fields = parse_et_yaml(
^^^^^^^^^^^^^^
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/executorch/parse.py", line 135, in parse_et_yaml
native_yaml = parse_native_yaml(
^^^^^^^^^^^^^^^^^^
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/gen.py", line 241, in parse_native_yaml
_GLOBAL_PARSE_NATIVE_YAML_CACHE[path] = parse_native_yaml_struct(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/gen.py", line 180, in parse_native_yaml_struct
add_generated_native_functions(rs, bs)
File "$PYTHON3_11_LINUXx86_64_env/lib/python3.11/site-packages/torchgen/native_function_generation.py", line 466, in add_generated_native_functions
raise AssertionError(
AssertionError: Found an operator that we could not generate an out= variant for: _cslt_sparse_mm_search(Tensor compressed_A, Tensor dense_B, Tensor? bias=None, Tensor? alpha=None, ScalarType? out_dtype=None, bool transpose_result=False) -> int.
This type of operators don't have tensor-like return, making it difficult to generate a proper out= variant. If
out= variant is not needed, please add the function name into FUNCTIONAL_OPS_THAT_CANNOT_GET_AN_OUT_VARIANT list.
gmake[2]: *** [kernels/portable/CMakeFiles/portable_ops_lib.dir/build.make:144: kernels/portable/RegisterCodegenUnboxedKernelsEverything.cpp] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:322: kernels/portable/CMakeFiles/portable_ops_lib.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2In 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