-
Notifications
You must be signed in to change notification settings - Fork 6.8k
NNPACK can't be compiled at 1.1.0 1.2.0 and master branch #10579
Comments
do you want to try MKLDNN instead? it's in 1.2 and the master branch. It's way faster than NNPack and accelerates many more operators. it's also open-source. I wonder if we still need to use NNPACK. |
yes i am also trying MKLDNN but the master branch can't be linked due to lack NNPACK related library although i set the USE_NNPACK to 0 ld: warning: option -noall_load is obsolete and being ignored |
sounds like i made the mistake, please ignore it |
@hongtao12310 : Do you have answers for your problem. IF yes, please go ahead and close this issue. Thanks @zheng-da : Can you please tag this as : Build. |
mkldnn can be built. but nnpack was still can't be built , i reviewed the code, sounds like there are some includes issue and class not defined issue( such as FullyConnectedOp) for the nnpack part |
@hongtao12310 |
@hongtao12310 |
agree @fullfanta Let's wait for the fix |
So, consensus is to go |
I am trying to enable NNPACK to accelerate the cnn network. and I set USE_NNPACK=1 in config.mk and run make (before that I have compiled the nnpack repository and also set the CFLAGS and LDFLAGS)
but there are some troubles when compile the nnpack_full_connected-ini.h. sounds like the FullyConnectedOp class was not implemented. below is the error log
the FullyConnectedOp class was exists in the v1.0.0 branch. I am not sure if i miss something or there is some mistake when merge code to the new branch ?
In file included from src/operator/nn/fully_connected.cc:25:
In file included from src/operator/nn/./fully_connected-inl.h:37:
In file included from src/operator/nn/../linalg.h:31:
src/operator/nn/.././c_lapack_api.h:328:11: warning: Warning: lapack usage not enabled, linalg-operators will not be available. Ensure that
lapack library is installed and build with USE_LAPACK=1 to get lapack functionalities. [-W#pragma-messages]
#pragma message("Warning: lapack usage not enabled, linalg-operators will not be available."
^
In file included from src/operator/nn/fully_connected.cc:29:
src/operator/nn/../nnpack/nnpack_fully_connected-inl.h:45:39: error: unknown template name 'FullyConnectedOp'
class NNPACKFullyConnectedOp : public FullyConnectedOp<xpu, DType> {
^
src/operator/nn/../nnpack/nnpack_fully_connected-inl.h:51:25: error: expected '(' or '{'
: FullyConnectedOp<xpu, DType>(p) {
^
1 warning and 2 errors generated.
make: *** [build/src/operator/nn/fully_connected.o] Error 1
The text was updated successfully, but these errors were encountered: