Open adamjstewart opened 3 years ago
This error occurs for me on both Ubuntu 18.04 with GCC 7.5.0 and on macOS 10.15.7 with Apple Clang 12.0.0.
It looks like peachpy/x86_64/avx.py
is supposed to be generated by opcodes
. If I build peachpy on its own it works fine. I'm guessing there's something wrong in the CMake configuration and opcodes
isn't being used.
Workaround: if I set -DNNPACK_BACKEND=psimd
I can skip the peachpy dependency altogether and get NNPACK to build. I have no idea what the performance consequences of this are.
I think when PYTHON_PEACHPY_SOURCE_DIR
is set, we don't run python setup.py generate
. Also, I noticed that the PYTHONPATH
gets overridden, so Python can't find my setuptools
which is set in a different directory.
Hi I've been stacked by the same problem when building pytorch, which uses NNpack and peachpy as submodules. Do you have any idea to fix this? Thanks!
Probably it could be related https://github.com/Maratyszcza/NNPACK/issues/202
See ... ${CMAKE_CURRENT_LIST_DIR}/src/x86_64-fma)
in patch
Hi I've been stacked by the same problem when building pytorch, which uses NNpack and peachpy as submodules. Do you have any idea to fix this? Thanks!
Hello,I also encountered this issue while installing Pytorch and it has now been solved.You need to execute python setup.py generate
under /pytorch/third_party/python-peachpy/
path
I'm writing a Spack package for NNPACK. Ideally, I would be able to link to already installed copies of these dependencies instead of having to install them multiple times.
When NNPACK tries to build its dependencies, they fail with errors like:
P.S. Would anyone like to be listed as the official maintainer for the NNPACK package? You don't need to know much about Spack, it just gives us someone to ping when a user reports build issues or wants to modify the build recipe.