Maratyszcza / NNPACK

Acceleration package for neural networks on multi-core CPUs
BSD 2-Clause "Simplified" License
1.67k stars 316 forks source link

ninja version error #126

Closed ZmeiGorynych closed 6 years ago

ZmeiGorynych commented 6 years ago

Trying to follow the instructions on the front page (Ubuntu 16.04 on AWS) to build nnpack, and looks like the required ninja version is later than the latest available. Am I missing something? Thanks a lot!

(torch) udacity@ip-172-31-36-88:~/GitHub/NNPACK$ python ./configure.py
Detected root directory: /home/carnd/GitHub/NNPACK
Configuring dependency pthreadpool
Configuring dependency fxdiv
Configuring dependency googletest
Configuring dependency googlebenchmark
Configuring dependency cpuinfo
Configuring dependency fp16
Configuring dependency psimd
Module default: 1 libraries, 5 executables, 1 benchmarks, 38 tests (10 smoke tests)
(torch) udacity@ip-172-31-36-88:~/GitHub/NNPACK$ ninja
ninja: fatal: ninja version (1.5.1) incompatible with build file ninja_required_version version (1.7).
(torch) udacity@ip-172-31-36-88:~/GitHub/NNPACK$ sudo apt-get install ninja-build
Reading package lists... Done
Building dependency tree
Reading state information... Done
ninja-build is already the newest version (1.5.1-0.1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 146 not upgraded.
Maratyszcza commented 6 years ago

You'd need to build upstream ninja yourself. See e.g. .travis.yaml for commands to do it.