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
37c1055a
Commit
37c1055a
authored
Jan 29, 2016
by
Davis King
Browse files
merged
parents
60d282a4
b6b62fa2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
33 deletions
+42
-33
dlib/cmake_find_blas.txt
dlib/cmake_find_blas.txt
+41
-33
dlib/matlab/cmake_mex_wrapper
dlib/matlab/cmake_mex_wrapper
+1
-0
No files found.
dlib/cmake_find_blas.txt
View file @
37c1055a
...
@@ -49,6 +49,10 @@ if (UNIX)
...
@@ -49,6 +49,10 @@ if (UNIX)
include(CheckLibraryExists)
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
# 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.
# file first since this way avoids linking bugs in some cases.
find_library(mkl_rt mkl_rt ${mkl_search_path})
find_library(mkl_rt mkl_rt ${mkl_search_path})
...
@@ -63,8 +67,6 @@ if (UNIX)
...
@@ -63,8 +67,6 @@ if (UNIX)
message(STATUS "Found Intel MKL BLAS/LAPACK library")
message(STATUS "Found Intel MKL BLAS/LAPACK library")
endif()
endif()
if (NOT found_intel_mkl)
if (NOT found_intel_mkl)
# Search for the needed libraries from the MKL. This time try looking for a different
# 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.
# set of MKL files and try to link against those.
...
@@ -84,6 +86,7 @@ if (UNIX)
...
@@ -84,6 +86,7 @@ if (UNIX)
message(STATUS "Found Intel MKL BLAS/LAPACK library")
message(STATUS "Found Intel MKL BLAS/LAPACK library")
endif()
endif()
endif()
endif()
endif()
# try to find some other LAPACK libraries if we didn't find the MKL
# try to find some other LAPACK libraries if we didn't find the MKL
...
@@ -98,6 +101,7 @@ if (UNIX)
...
@@ -98,6 +101,7 @@ if (UNIX)
/usr/lib/atlas
/usr/lib/atlas
/usr/lib/openblas-base
/usr/lib/openblas-base
/opt/OpenBLAS/lib
/opt/OpenBLAS/lib
$ENV{OPENBLAS_HOME}/lib
)
)
INCLUDE (CheckFunctionExists)
INCLUDE (CheckFunctionExists)
...
@@ -220,6 +224,8 @@ elseif(WIN32 AND NOT MINGW)
...
@@ -220,6 +224,8 @@ elseif(WIN32 AND NOT MINGW)
check_type_size( "void*" SIZE_OF_VOID_PTR)
check_type_size( "void*" SIZE_OF_VOID_PTR)
if (SIZE_OF_VOID_PTR EQUAL 8)
if (SIZE_OF_VOID_PTR EQUAL 8)
set( mkl_search_path
set( mkl_search_path
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_*/windows/mkl/lib/intel64"
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_*/windows/compiler/lib/intel64"
"C:/Program Files (x86)/Intel/Composer XE/mkl/lib/intel64"
"C:/Program Files (x86)/Intel/Composer XE/mkl/lib/intel64"
"C:/Program Files (x86)/Intel/Composer XE/compiler/lib/intel64"
"C:/Program Files (x86)/Intel/Composer XE/compiler/lib/intel64"
"C:/Program Files/Intel/Composer XE/mkl/lib/intel64"
"C:/Program Files/Intel/Composer XE/mkl/lib/intel64"
...
@@ -228,6 +234,8 @@ elseif(WIN32 AND NOT MINGW)
...
@@ -228,6 +234,8 @@ elseif(WIN32 AND NOT MINGW)
find_library(mkl_intel mkl_intel_lp64 ${mkl_search_path})
find_library(mkl_intel mkl_intel_lp64 ${mkl_search_path})
else()
else()
set( mkl_search_path
set( mkl_search_path
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_*/windows/mkl/lib/ia32"
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_*/windows/compiler/lib/ia32"
"C:/Program Files (x86)/Intel/Composer XE/mkl/lib/ia32"
"C:/Program Files (x86)/Intel/Composer XE/mkl/lib/ia32"
"C:/Program Files (x86)/Intel/Composer XE/compiler/lib/ia32"
"C:/Program Files (x86)/Intel/Composer XE/compiler/lib/ia32"
"C:/Program Files/Intel/Composer XE/mkl/lib/ia32"
"C:/Program Files/Intel/Composer XE/mkl/lib/ia32"
...
...
dlib/matlab/cmake_mex_wrapper
View file @
37c1055a
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
cmake_minimum_required(VERSION 2.8.4)
cmake_minimum_required(VERSION 2.8.4)
set(BUILDING_MATLAB_MEX_FILE true)
# Find MATLAB's include directory and needed libraries
# Find MATLAB's include directory and needed libraries
find_program(MATLAB_EXECUTABLE matlab PATHS
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