строительство кафе с MKL

Столкнулся с двумя ошибками при сборке кофе с MKL. MKL устанавливается в /opt/intel

  1. mkl.h не найден
  2. caffe usr/bin/ld: не могу найти -lmkl_rt
  3. /intel/mkl/lib/intel64/libmkl_intel_thread.so: неопределенный символ: omp_get_num_procs

person r3t2    schedule 20.10.2016    source источник


Ответы (1)


Ошибки 1 и 2 были устранены после указания следующих двух

BLAS := mkl
BLAS_INCLUDE := /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/include/
BLAS_LIB := /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64_lin/

Для 3 см. https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/402497

Мне пришлось добавить /opt/intel/compilers_and_libraries_2017.0.098/linux/compiler/lib/intel64_lin/ в LD_LIBRARY_PATH.

Также добавлен /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64_lin/ в LD_LIBRARY_PATH.

person r3t2    schedule 20.10.2016