Open lovealbert opened 4 years ago
Try to remove deps directory, reconfigure, and rebuild
Try to remove deps directory, reconfigure, and rebuild
Thanks for the answer.
If you run it after deleting the deps directory, it looks like this: Is there any other way?
===============================================================
pi@raspberrypi:~/Downloads $ git clone https://github.com/digitalbrain79/NNPACK-darknet.git
Cloning into 'NNPACK-darknet'...
remote: Enumerating objects: 2009, done.
remote: Total 2009 (delta 0), reused 0 (delta 0), pack-reused 2009
Receiving objects: 100% (2009/2009), 829.75 KiB | 595.00 KiB/s, done.
Resolving deltas: 100% (1333/1333), done.
pi@raspberrypi:~/Downloads $ cd NNPACK-darknet
pi@raspberrypi:~/Downloads/NNPACK-darknet $ ls -l
total 76
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 bench
-rwxr-xr-x 1 pi pi 7874 Apr 24 02:48 benchmark.py
-rwxr-xr-x 1 pi pi 18372 Apr 24 02:48 configure.py
-rw-r--r-- 1 pi pi 386 Apr 24 02:48 confu.yaml
drwxr-xr-x 3 pi pi 4096 Apr 24 02:48 include
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 jni
-rw-r--r-- 1 pi pi 1319 Apr 24 02:48 LICENSE
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 logo
-rw-r--r-- 1 pi pi 11063 Apr 24 02:48 README.md
drwxr-xr-x 7 pi pi 4096 Apr 24 02:48 src
drwxr-xr-x 17 pi pi 4096 Apr 24 02:48 test
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 web
pi@raspberrypi:~/Downloads/NNPACK-darknet $ confu setup
/usr/local/lib/python2.7/dist-packages/confu/manifest.py:36: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
manifest_yaml = yaml.load(manifest_text)
Fetch dependency pthreadpool from https://github.com/Maratyszcza/pthreadpool.git
Fetch dependency pthreadpool:fxdiv from https://github.com/Maratyszcza/FXdiv.git
Setup dependency pthreadpool:fxdiv:googletest using built-in recipe confu.recipes.pthreadpool:fxdiv:googletest
Setup dependency pthreadpool:fxdiv:googlebenchmark using built-in recipe confu.recipes.pthreadpool:fxdiv:googlebenchmark
Reuse dependency pthreadpool:googletest from /home/pi/Downloads/NNPACK-darknet/deps/googletest
Reuse dependency pthreadpool:googlebenchmark from /home/pi/Downloads/NNPACK-darknet/deps/googlebenchmark
Reuse dependency fxdiv from /home/pi/Downloads/NNPACK-darknet/deps/fxdiv
Reuse dependency fxdiv:googletest from /home/pi/Downloads/NNPACK-darknet/deps/googletest
Reuse dependency fxdiv:googlebenchmark from /home/pi/Downloads/NNPACK-darknet/deps/googlebenchmark
Fetch dependency fp16 from https://github.com/Maratyszcza/FP16.git
Fetch dependency fp16:psimd from https://github.com/Maratyszcza/psimd.git
Reuse dependency fp16:googletest from /home/pi/Downloads/NNPACK-darknet/deps/googletest
Reuse dependency fp16:googlebenchmark from /home/pi/Downloads/NNPACK-darknet/deps/googlebenchmark
Reuse dependency psimd from /home/pi/Downloads/NNPACK-darknet/deps/psimd
Reuse dependency googletest from /home/pi/Downloads/NNPACK-darknet/deps/googletest
pi@raspberrypi:~/Downloads/NNPACK-darknet $ ls -l
total 80
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 bench
-rwxr-xr-x 1 pi pi 7874 Apr 24 02:48 benchmark.py
-rwxr-xr-x 1 pi pi 18372 Apr 24 02:48 configure.py
-rw-r--r-- 1 pi pi 386 Apr 24 02:48 confu.yaml
drwxr-xr-x 8 pi pi 4096 Apr 24 02:48 deps
drwxr-xr-x 3 pi pi 4096 Apr 24 02:48 include
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 jni
-rw-r--r-- 1 pi pi 1319 Apr 24 02:48 LICENSE
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 logo
-rw-r--r-- 1 pi pi 11063 Apr 24 02:48 README.md
drwxr-xr-x 7 pi pi 4096 Apr 24 02:48 src
drwxr-xr-x 17 pi pi 4096 Apr 24 02:48 test
drwxr-xr-x 2 pi pi 4096 Apr 24 02:48 web
pi@raspberrypi:~/Downloads/NNPACK-darknet $
pi@raspberrypi:~/Downloads/NNPACK-darknet $ rm -rf deps/
pi@raspberrypi:~/Downloads/NNPACK-darknet $ python ./configure.py --backend auto
Detected root directory: /home/pi/Downloads/NNPACK-darknet
/usr/local/lib/python2.7/dist-packages/confu/manifest.py:36: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
manifest_yaml = yaml.load(manifest_text)
Configuring dependency pthreadpool
Fatal error: don't know how to build pthreadpool: configure.py not found in /home/pi/Downloads/NNPACK-darknet/deps/pthreadpool
Traceback (most recent call last):
File "./configure.py", line 396, in <module>
main(sys.argv[1:]).generate()
File "./configure.py", line 36, in main
(build.deps.pthreadpool, build.deps.fxdiv, build.deps.fp16): any,
File "/usr/local/lib/python2.7/dist-packages/confu/builds/deps.py", line 66, in __getattr__
os.path.join(dep_dir, "configure.py"))
IOError: [Errno 2] No such file or directory: '/home/pi/Downloads/NNPACK-darknet/deps/pthreadpool/configure.py'
================================================================
confu is deprecated. Please use cmake and follow the instructions in the readme
confu is deprecated. Please use cmake and follow the instructions in the readme
Thanks. Let's try again.
Try to remove deps directory, reconfigure, and rebuild
I met the same problem. After I delete deps directory.
~/NNPACK/build $ cmake .. -G Ninja
-- NNPACK backend is neon
CMake Error at CMakeLists.txt:498 (ADD_SUBDIRECTORY):
ADD_SUBDIRECTORY given source "/home/pi/research/NNPACK/deps/cpuinfo" which
is not an existing directory.
CMake Error at CMakeLists.txt:508 (ADD_SUBDIRECTORY):
ADD_SUBDIRECTORY given source "/home/pi/research/NNPACK/deps/pthreadpool"
which is not an existing directory.
CMake Error at CMakeLists.txt:525 (ADD_SUBDIRECTORY):
ADD_SUBDIRECTORY given source "/home/pi/research/NNPACK/deps/fxdiv" which
is not an existing directory.
CMake Error at CMakeLists.txt:533 (ADD_SUBDIRECTORY):
ADD_SUBDIRECTORY given source "/home/pi/research/NNPACK/deps/psimd" which
is not an existing directory.
CMake Error at CMakeLists.txt:543 (ADD_SUBDIRECTORY):
ADD_SUBDIRECTORY given source "/home/pi/research/NNPACK/deps/fp16" which is
not an existing directory.
CMake Error at CMakeLists.txt:559 (ADD_SUBDIRECTORY):
ADD_SUBDIRECTORY given source "/home/pi/research/NNPACK/deps/googletest"
which is not an existing directory.
-- Configuring incomplete, errors occurred!
See also "/home/pi/research/NNPACK/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/research/NNPACK/build/CMakeFiles/CMakeError.log".
So how to define CPUINFO_SOURCE_DIR
, GOOGLETEST_SOURCE_DIR
to avoid "Downloading Google Test to ${CONFU_DEPENDENCIES_SOURCE_DIR}/googletest
in CMakeLists.txt ?
Thanks.
pthreadlib repo has those missing folders. @pyjhzwh the latest commit of NNPACK here does not work with NNPACK-darknet because NNPACK-darknet has not yet updated to use the new pthreadlib API.
Hello. When compiling NNPack ($ NINJA_PATH / ninja), the following error message occurred. Please check. Thanks.
[63/142] LINK bin/transform-benchmark FAILED: /home/pi/Downloads/NNPACK/bin/transform-benchmark**
=============================================================