Incubator-mxnet: Link error when compliling with intel mkl

Created on 25 Sep 2016  路  2Comments  路  Source: apache/incubator-mxnet

Got a link error when compile with mkl on ubuntu 14.04.

/usr/bin/ld: cannot find -liomp5

My config.mk file is as follows:

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Darwin)
USE_BLAS = apple
else
USE_BLAS = mkl
endif

USE_INTEL_PATH = /opt/intel

I tried source /opt/intel/bin/compilervars.sh and adding /opt/intel/lib/intel64_lin (where the file libiomp5.solocated) to LD_LIBRARY_PATH, but the error still exists.

Most helpful comment

You could create a symbolic link to /lib like:
ln -s /opt/intel/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/libiomp5.so /lib/libiomp5.so

All 2 comments

You could create a symbolic link to /lib like:
ln -s /opt/intel/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/libiomp5.so /lib/libiomp5.so

That works! Thank you.

Was this page helpful?
0 / 5 - 0 ratings