6 Replies Latest reply on Feb 27, 2018 10:28 PM by Intel Corporation

    ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory

    jakexxh

      Hi,

       

      I am going to install Intel/chainer(on Github) on my devCloud, but I got a weird error:

       

      ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory

       

      btw, I install it in my conda env.

       

      This is the output:

       

      (chainer_intel) [u11730@c009 chainer]$ python setup.py install

      running install

      Intel mkl-dnn preparing ...

      Installing ...

      make: *** No targets specified and no makefile found.  Stop.

      cp: target ‘/home/u11730/.chainer/lib’ is not a directory

      cp: target ‘/home/u11730/.chainer/include’ is not a directory

      Intel mkl-dnn prepared !

      running build_ext

      building 'ideep4py._ideep4py' extension

      swigging ideep4py/py/ideep4py.i to ideep4py/py/ideep4py_wrap.cpp

      swig -python -c++ -builtin -modern -modernargs -Iideep4py/py/mm -Iideep4py/py/primitives -Iideep4py/py/swig_utils -Iideep4py/include/primitives/ -Iideep4py/include/mm/ -o ideep4py/py/ideep4py_wrap.cpp ideep4py/py/ideep4py.i

      ideep4py/py/mm/mdarray.i:302: Warning 401: Nothing known about base class 'py_handle'. Ignored.

      ideep4py/py/mm/basic.i:40: Warning 467: Overloaded method basic::copyto(mdarray *,Py_buffer *) not supported (incomplete type checking rule - no precedence level in typecheck typemap for 'Py_buffer *').

      creating build

      creating build/temp.linux-x86_64-3.6

      creating build/temp.linux-x86_64-3.6/ideep4py

      creating build/temp.linux-x86_64-3.6/ideep4py/py

      creating build/temp.linux-x86_64-3.6/ideep4py/mm

      creating build/temp.linux-x86_64-3.6/ideep4py/py/mm

      creating build/temp.linux-x86_64-3.6/ideep4py/common

      creating build/temp.linux-x86_64-3.6/ideep4py/blas

      creating build/temp.linux-x86_64-3.6/ideep4py/primitives

      creating build/temp.linux-x86_64-3.6/ideep4py/primitives/ops

      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -fPIC -I/home/u11730/.conda/envs/chainer_intel/lib/python3.6/site-packages/numpy/core/include -Iideep4py/include -Iideep4py/include/mkl -Iideep4py/common -Iideep4py/include/mm -Iideep4py/py/mm -Iideep4py/py/primitives -Iideep4py/include/primitives -Iideep4py/include/blas -Iideep4py/include/primitives/ops -Iideep4py/include/primitives/prim_mgr -I/home/u11730/.chainer/include -I/home/u11730/.conda/envs/chainer_intel/include/python3.6m -c ideep4py/py/ideep4py_wrap.cpp -o build/temp.linux-x86_64-3.6/ideep4py/py/ideep4py_wrap.o -std=c++11 -Wno-unknown-pragmas -fopenmp -DOPENMP_AFFINITY

      cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]

      In file included from ideep4py/py/ideep4py_wrap.cpp:3892:0:

      ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory

      #include <mkldnn.hpp>

                            ^

      compilation terminated.

      error: command 'gcc' failed with exit status 1

        • 1. Re: ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory
          Intel Corporation
          This message was posted on behalf of Intel Corporation

          Hi,
              Thanks for reaching out to us. 
          Please follow the below steps for chainer installation
          1) Create conda environment as below
              conda create --name chainer_env python=3.6
          2) Activate conda environment as below
             source activate chainer_env
          3)git clone -b master_v3 https://github.com/intel/chainer
          4)cd chainer
          5)pip install setuptools
          6)pip install numpy
          7)conda install -c intel swig
          8)python setup.py build
          9)python setup.py install
          10)pip install six
          11)pip install filelock
          now try importing chainer if you still get mkl-dnn error then install mkl-dnn as below
          conda install -c intel mkl-dnn 

          Thanks

          • 2. Re: ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory
            jakexxh

            Hi,

             

            Thanks for your help, it still crashed, even though I install mkl-dnn

            By the way, I run your commands on the compute node (qsub -I)

             

            My output:

             

            (chainer_env) [u11730@c009-n018 chainer]$ python setup.py build

            running build

            running build_py

            Intel mkl-dnn preparing ...

            Installing ...

            make: *** No targets specified and no makefile found.  Stop.

            cp: target ‘/home/u11730/.chainer/lib’ is not a directory

            cp: target ‘/home/u11730/.chainer/include’ is not a directory

            Intel mkl-dnn prepared !

            running build_ext

            building 'ideep4py._ideep4py' extension

            swigging ideep4py/py/ideep4py.i to ideep4py/py/ideep4py_wrap.cpp

            swig -python -c++ -builtin -modern -modernargs -Iideep4py/py/mm -Iideep4py/py/primitives -Iideep4py/py/swig_utils -Iideep4py/include/primitives/ -Iideep4py/include/mm/ -o ideep4py/py/ideep4py_wrap.cpp ideep4py/py/ideep4py.i

            ideep4py/py/mm/mdarray.i:302: Warning 401: Nothing known about base class 'py_handle'. Ignored.

            ideep4py/py/mm/basic.i:40: Warning 467: Overloaded method basic::copyto(mdarray *,Py_buffer *) not supported (incomplete type checking rule - no precedence level in typecheck typemap for 'Py_buffer *').

            gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector -O3 -fpic -fPIC -fPIC -I/home/u11730/.conda/envs/chainer_env/lib/python3.6/site-packages/numpy/core/include -Iideep4py/include -Iideep4py/include/mkl -Iideep4py/common -Iideep4py/include/mm -Iideep4py/py/mm -Iideep4py/py/primitives -Iideep4py/include/primitives -Iideep4py/include/blas -Iideep4py/include/primitives/ops -Iideep4py/include/primitives/prim_mgr -I/home/u11730/.chainer/include -I/home/u11730/.conda/envs/chainer_env/include/python3.6m -c ideep4py/py/ideep4py_wrap.cpp -o build/temp.linux-x86_64-3.6/ideep4py/py/ideep4py_wrap.o -std=c++11 -Wno-unknown-pragmas -fopenmp -DOPENMP_AFFINITY

            cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]

            In file included from ideep4py/py/ideep4py_wrap.cpp:3892:0:

            ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory

            #include <mkldnn.hpp>

                                  ^

            compilation terminated.

            error: command 'gcc' failed with exit status 1

            • 3. Re: ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory
              weiyu_P

              hi, I had met this error just last week. I found the reason is I run the install command on the jupyter's terminal. when I use the putty , I got succeed.

               

              Wish it could help you

              • 4. Re: ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory
                Intel Corporation
                This message was posted on behalf of Intel Corporation

                Hi,
                   We executed the earlier listed steps again and it went fine on the controller node. Since it is installation, you better do it on controller node. Once installation is done you can execute the script on the compute node. 
                Please provide the complete console output while executing each step so that, we can debug the problem.

                Thanks

                • 5. Re: ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory
                  Intel Corporation
                  This message was posted on behalf of Intel Corporation

                  Hi,
                     Kindly please let us know if the your problem is resolved.

                  Thanks

                  • 6. Re: ideep4py/py/mm/mdarray.h:15:22: fatal error: mkldnn.hpp: No such file or directory
                    Intel Corporation
                    This message was posted on behalf of Intel Corporation

                    Hi,
                      I am closing this thread. Should you have any new issues, please open a new thread.

                    Thanks
                    Ravi Keron N