Build issues when building tvm with mkl on ubuntu

Hey, working through building the latest tvm from source on Ubuntu. The current ubuntu apt-based install of mkl installs include files to /usr/include/mkl and mkl libraries to /usr/lib/x86_64-linux-gnu/libmkl_core.so.

My build currently fails if I enable mkl with this error:

[  1%] Building CXX object CMakeFiles/tvm_runtime.dir/src/runtime/contrib/cblas/cblas.cc.o
/home/chrisn/dev/tech.all/tvm-clj/tvm/src/runtime/contrib/cblas/cblas.cc:31:10: fatal error: mkl_cblas.h: No such file or directory

I believe this is because there is an assumption in the blas build code that mkl is installed in a particular way from the intel source package.

On my system, mkl headers are installed to /usr/include/mkl and mkl binaries are installed to /usr/lib/x86_64-linux-gnu/ when using apt.

Is there interest in supporting this pathway?

HI @chrisn, did you manage to solve this issue ?

Hi Chrisn, In My Case, i use pip3 install to install mkl and meet the issue as you mentioned. Then, i use apt-get install to install mkl, and pass this issue. Just for your reference ^ ^

Have a nice day,

–chayi