Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
b6b62fa2
Commit
b6b62fa2
authored
Jan 29, 2016
by
Davis King
Browse files
Made cmake avoid using the Intel MKL when building mex files since it will
often create a conflict with MATLAB's copy of the MKL.
parent
c029600a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
33 deletions
+38
-33
dlib/cmake_find_blas.txt
dlib/cmake_find_blas.txt
+37
-33
dlib/matlab/cmake_mex_wrapper
dlib/matlab/cmake_mex_wrapper
+1
-0
No files found.
dlib/cmake_find_blas.txt
View file @
b6b62fa2
...
...
@@ -47,6 +47,10 @@ if (UNIX)
include(CheckLibraryExists)
# Don't try to use the Intel MKL when we are building a MATLAB mex file
# since it will usually conflict with MATLAB's copy of the MKL and cause
# problems.
if (NOT BUILDING_MATLAB_MEX_FILE)
# Search for the needed libraries from the MKL. We will try to link against the mkl_rt
# file first since this way avoids linking bugs in some cases.
find_library(mkl_rt mkl_rt ${mkl_search_path})
...
...
@@ -61,8 +65,6 @@ if (UNIX)
message(STATUS "Found Intel MKL BLAS/LAPACK library")
endif()
if (NOT found_intel_mkl)
# Search for the needed libraries from the MKL. This time try looking for a different
# set of MKL files and try to link against those.
...
...
@@ -82,6 +84,7 @@ if (UNIX)
message(STATUS "Found Intel MKL BLAS/LAPACK library")
endif()
endif()
endif()
# try to find some other LAPACK libraries if we didn't find the MKL
...
...
@@ -96,6 +99,7 @@ if (UNIX)
/usr/lib/atlas
/usr/lib/openblas-base
/opt/OpenBLAS/lib
$ENV{OPENBLAS_HOME}/lib
)
INCLUDE (CheckFunctionExists)
...
...
dlib/matlab/cmake_mex_wrapper
View file @
b6b62fa2
...
...
@@ -5,6 +5,7 @@
cmake_minimum_required(VERSION 2.8.4)
set(BUILDING_MATLAB_MEX_FILE true)
# Find MATLAB's include directory and needed libraries
find_program(MATLAB_EXECUTABLE matlab PATHS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment