Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
86eaaf45
Commit
86eaaf45
authored
Mar 18, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Plain Diff
merged
parents
c5689ea2
e26e09d3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
CMakeLists.txt
dlib/CMakeLists.txt
+7
-4
check_if_neon_available.cmake
dlib/cmake_utils/check_if_neon_available.cmake
+0
-0
find_blas.cmake
dlib/cmake_utils/find_blas.cmake
+0
-0
No files found.
dlib/CMakeLists.txt
View file @
86eaaf45
...
@@ -512,7 +512,7 @@ if (NOT TARGET dlib)
...
@@ -512,7 +512,7 @@ if (NOT TARGET dlib)
if
(
DLIB_USE_BLAS OR DLIB_USE_LAPACK OR DLIB_USE_MKL_FFT
)
if
(
DLIB_USE_BLAS OR DLIB_USE_LAPACK OR DLIB_USE_MKL_FFT
)
# Try to find BLAS, LAPACK and MKL
# Try to find BLAS, LAPACK and MKL
include
(
cmake_utils/
cmake_find_blas.txt
)
include
(
cmake_utils/
find_blas.cmake
)
if
(
DLIB_USE_BLAS
)
if
(
DLIB_USE_BLAS
)
if
(
blas_found
)
if
(
blas_found
)
...
@@ -596,7 +596,8 @@ if (NOT TARGET dlib)
...
@@ -596,7 +596,8 @@ if (NOT TARGET dlib)
# make sure cuda is really working by doing a test compile
# make sure cuda is really working by doing a test compile
message
(
STATUS
"Building a CUDA test project to see if your compiler is compatible with CUDA..."
)
message
(
STATUS
"Building a CUDA test project to see if your compiler is compatible with CUDA..."
)
set
(
CUDA_TEST_CMAKE_FLAGS
"-DCMAKE_PREFIX_PATH=
${
CMAKE_PREFIX_PATH
}
"
set
(
CUDA_TEST_CMAKE_FLAGS
"-DCMAKE_PREFIX_PATH=
${
CMAKE_PREFIX_PATH
}
"
"-DCMAKE_INCLUDE_PATH=
${
CMAKE_INCLUDE_PATH
}
"
"-DCMAKE_INCLUDE_PATH=
${
CMAKE_INCLUDE_PATH
}
"
"-DCMAKE_LIBRARY_PATH=
${
CMAKE_LIBRARY_PATH
}
"
)
"-DCMAKE_LIBRARY_PATH=
${
CMAKE_LIBRARY_PATH
}
"
)
...
@@ -604,7 +605,8 @@ if (NOT TARGET dlib)
...
@@ -604,7 +605,8 @@ if (NOT TARGET dlib)
list
(
APPEND CUDA_TEST_CMAKE_FLAGS
"-DCUDA_HOST_COMPILER=
${
CUDA_HOST_COMPILER
}
"
)
list
(
APPEND CUDA_TEST_CMAKE_FLAGS
"-DCUDA_HOST_COMPILER=
${
CUDA_HOST_COMPILER
}
"
)
endif
()
endif
()
try_compile
(
cuda_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cuda_test_build
try_compile
(
cuda_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cuda_test_build
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cuda cuda_test
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cuda cuda_test
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
OUTPUT_VARIABLE try_compile_output_message
OUTPUT_VARIABLE try_compile_output_message
...
@@ -618,7 +620,8 @@ if (NOT TARGET dlib)
...
@@ -618,7 +620,8 @@ if (NOT TARGET dlib)
message
(
STATUS
"*****************************************************************************************************************"
)
message
(
STATUS
"*****************************************************************************************************************"
)
else
()
else
()
message
(
STATUS
"Checking if you have the right version of cuDNN installed."
)
message
(
STATUS
"Checking if you have the right version of cuDNN installed."
)
try_compile
(
cudnn_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
try_compile
(
cudnn_test_compile_worked
${
PROJECT_BINARY_DIR
}
/cudnn_test_build
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cudnn cudnn_test
${
PROJECT_SOURCE_DIR
}
/cmake_utils/test_for_cudnn cudnn_test
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
CMAKE_FLAGS
${
CUDA_TEST_CMAKE_FLAGS
}
)
)
...
...
dlib/cmake_utils/check_if_neon_available.cmake
View file @
86eaaf45
dlib/cmake_utils/
cmake_find_blas.txt
→
dlib/cmake_utils/
find_blas.cmake
View file @
86eaaf45
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