Another try to fix mkl
@@ -16,7 +16,9 @@ source activate testenv
# Add MKL shared libraries to the path
MKL_SHARED_LIB_DIR=`ls -d ${DEPS_DIR}/miniconda/pkgs/*/lib | grep mkl-2 | tail -1`
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
- export LD_LIBRARY_PATH=${MKL_SHARED_LIB_DIR}:${LD_LIBRARY_PATH}
+ # In linux the openmp intel library is in a different directory
+ OPENMP_SHARED_LIB_DIR=`ls -d ${DEPS_DIR}/miniconda/pkgs/*/lib | grep openmp | tail -1`
+ export LD_LIBRARY_PATH=${MKL_SHARED_LIB_DIR}:${OPENMP_SHARED_LIB_DIR}:${LD_LIBRARY_PATH}
else if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export DYLD_LIBRARY_PATH=${MKL_SHARED_LIB_DIR}:${DYLD_LIBRARY_PATH}
fi
