I was able to build libtorch with MKL (installed by conda) by python setup.py install. However, there is no guarantee that the production environment is provided with MKL. As a result, I was wondering if we can build libtorch without MKL?
I’ve tried by uninstalling MKL (through conda) and build libtorch. The building process looks normal. However, when linking libcaffe2_gpu.so to my executable, there are several ‘undefined reference’ error messages I’ve never seen and the Google also provide nothing useful.

image.png840×280 97.3 KB

Apologize for the Chinese characters in the screenshot. ‘未定义的引用’  means ‘undefined reference’