Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use mkl-dnn on Danverton car branch2 platform shows"illegal instruction" #394

Closed
JiaKun2017 opened this issue Jan 24, 2019 · 1 comment
Closed

Comments

@JiaKun2017
Copy link

hi,
now i met a new issue, which about tranplant my lenet code using mkldnn to intel car branch2 board with denverton processor. now when i run the bin file in intel board, it only shows "Illegal instruction".
my steps as follows:
1) install intel sdk packet automated_driving_sdk_2019_beta.tgz
2) install mkldnn , before "make & make install" , i do the script as follows:
cd scripts && ./prepare_mkl.sh && cd ..
cmake CC=icc CXX=icpc cmake -DCMAKE_BUILD_TYPE=RELEASE ..
make
make install
3) create my project lenet, before i build the project , i will run a script like
/opt/intel/automated_driving_2019/system_studio_2019/bin/compilervars.sh intel64
after that i can use icc or icpc to compile my code.
4) build my project , use icc compiler, and -lmkldnn link flag to link mkldnn libs
5) when i run the bin file in linux machine, it will be ok. but when i run it in intel car branch2 board, it shows "Illegal instruction".

 i dont know why. and i check the lib in mkl-dnn\external\mklml_lnx_2019.0.1.20181227\lib . i can find libiomp5.so in intel sdk install directory, but i can not find libmklml_gnu.so and libmklml_intel.so. 

 can you give me some advice? thanks a lot.
@JiaKun2017
Copy link
Author

root@ccm-64-uefi:/home/libin/lenet/test/linux_test# gdb lenet_test core
GNU gdb (GDB) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-poky-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from lenet_test...done.
[New LWP 923]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `./lenet_test'.
Program terminated with signal SIGILL, Illegal instruction.
#0 0x00007f09f7598217 in mkldnn_memory_desc_init () from ../../thirdparty/mkldnn/lib/libmkldnn.so.0
(gdb) bt
#0 0x00007f09f7598217 in mkldnn_memory_desc_init () from ../../thirdparty/mkldnn/lib/libmkldnn.so.0
#1 0x0000000000408102 in init_data_memory (dim=55004352, dims=0x4, user_fmt=mkldnn_format_undef, mkldnn_f32=55030960, engine=0x1c, data=0x62b5c0, memory=0x62b0d0)
at src/cnn/imotion_common.c:322
#2 0x0000000000403516 in LENET_create_mkldnn (p_lenet=0x7ffc03474cc0) at src/app/IMOTION_LENET.c:724
#3 0x0000000000403027 in LENET_create (p_input_bin_file=0x7ffc03474cc0 "", batch_size=4, channel_size=0) at src/app/IMOTION_LENET.c:1450
#4 0x0000000000409976 in test_multi_file () at test/lenet_test.c:226
#5 main () at test/lenet_test.c:328

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant