Error in NNPACK: cdata<enum nnp_status>: 51 (nnp_initialize)
Closed this issue · 1 comments
bobbens commented
Hello,
I just installed NNPACK of latest git and nnpack.torch and am geting the following error:
$ th
______ __ | Torch7
/_ __/__ ________/ / | Scientific computing for Lua.
/ / / _ \/ __/ __/ _ \ | Type ? for help
/_/ \___/_/ \__/_//_/ | https://github.com/torch
| http://torch.ch
th> require 'nnpack'
/home/esimo/torch/install/share/lua/5.1/trepl/init.lua:384: /home/esimo/torch/install/share/lua/5.1/nnpack/init.lua:11: Error in NNPACK: cdata<enum nnp_status>: 51 (nnp_initialize)
stack traceback:
[C]: in function 'error'
/home/esimo/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
[string "_RESULT={require 'nnpack'}"]:1: in main chunk
[C]: in function 'xpcall'
/home/esimo/torch/install/share/lua/5.1/trepl/init.lua:651: in function 'repl'
...simo/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
[C]: at 0x00405d50
I'm assuming the API changed or something. Would it be possible to know what revision of NNPACK was last used with nnpack.torch to know compatibility?
By the way, I had to change the last lines of ffi.lua to the following so it uses the system nnpack.so and not a local one.
local C = ffi.load'nnpack'
--local C = ffi.load'./libnnpack.so'
Thanks.
bobbens commented
Stupid of me, it seems like the server in question does not support the avx2 instruction and thus NNPACK doesn't work. Tried the tests and they fail. Sorry about the noise.