Community
cancel
Showing results for 
Search instead for 
Did you mean: 
hsiao__taihua
Beginner
145 Views

Build Intel-caffe fail

Hi,

When I execute following command(according to https://github.com/intel/caffe/wiki/Build-Caffe-with-Intel--Compiler )

pcie@pcie-cascade-lake:~/caffe$ sudo make all -j$(nproc)

it display these error messages: 
/home/pcie/caffe/boost_1_64_0/stage/lib/libboost_thread.so: undefined reference to `__builtin_is_constant_evaluated'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_stream_submit'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_memory_primitive_desc_equal'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_primitive_desc_query_memory_d'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_reorder_primitive_desc_create_v2'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_memory_primitive_desc_create'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_memory_desc_init'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_memory_primitive_desc_get_size'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_primitive_attr_set_int_output_round_mode'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_view_primitive_desc_create'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_primitive_at'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_primitive_desc_iterator_create_v2'
.build_release/lib/libcaffe.so: undefined reference to `mkldnn_primitive_desc_query_pd'
Makefile:866: recipe for target '.build_release/examples/ssd/ssd_detect.bin' failed
make: *** [.build_release/examples/ssd/ssd_detect.bin] Error 1

How to fix it?

My environments:
CPU :  Xeon 8270
ubuntu 18.04
icpc (ICC) 19.0.4.243 20190416
MKLDNN download is enabled by customized setting!
boost_1_64_0

0 Kudos
2 Replies
Viet_H_Intel
Moderator
145 Views

You would need to find where those symbols are defined and then link/load them.

hsiao__taihua
Beginner
145 Views

To Viet Hoang,

For these error messages, if I know a symbol is defined, which file should I modify?

For example, ' mkldnn_reorder_primitive_desc_create_v2' is defined in caffe/external/mkldnn/src/src/common/reorder.cpp,
is the path 'caffe/external/mkldnn/src/src/common' only need to add/modify in caffe/Makefile or any other file?
which line should be done?

Reply