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
d7b5fc5e
Commit
d7b5fc5e
authored
Mar 04, 2016
by
Daniel Crispell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standardize cmake and env CUDNN variable names
parent
a9d4b15b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
dlib/CMakeLists.txt
+1
-1
find_cudnn.txt
dlib/dnn/test_for_cudnn/find_cudnn.txt
+2
-2
No files found.
dlib/CMakeLists.txt
View file @
d7b5fc5e
...
@@ -468,7 +468,7 @@ if (NOT TARGET dlib)
...
@@ -468,7 +468,7 @@ if (NOT TARGET dlib)
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
}
/dnn/test_for_cudnn cudnn_test
${
PROJECT_SOURCE_DIR
}
/dnn/test_for_cudnn cudnn_test
CMAKE_FLAGS -D
cudnn=
${
cudnn
}
-Dcudnn_include=
${
cudnn_include
}
)
CMAKE_FLAGS -D
CUDNN_INCLUDE_DIR=
${
CUDNN_INCLUDE_DIR
}
-DCUDNN_LIBRARY_DIR=
${
CUDNN_LIBRARY_DIR
}
)
if
(
cudnn_test_compile_worked
)
if
(
cudnn_test_compile_worked
)
message
(
STATUS
"Found cuDNN: "
${
cudnn
}
)
message
(
STATUS
"Found cuDNN: "
${
cudnn
}
)
else
()
else
()
...
...
dlib/dnn/test_for_cudnn/find_cudnn.txt
View file @
d7b5fc5e
...
@@ -3,12 +3,12 @@ message(STATUS "Looking for cuDNN install...")
...
@@ -3,12 +3,12 @@ message(STATUS "Looking for cuDNN install...")
# Look for cudnn, we will look in the same place as other CUDA
# Look for cudnn, we will look in the same place as other CUDA
# libraries and also a few other places as well.
# libraries and also a few other places as well.
find_path(cudnn_include cudnn.h
find_path(cudnn_include cudnn.h
HINTS ${CUDA_INCLUDE_DIRS} $
ENV{CUDNN_INCLUDE_DIR}
HINTS ${CUDA_INCLUDE_DIRS} $
{CUDNN_INCLUDE_DIR} $ENV{CUDNN_INCLUDE_DIR}
PATHS /usr/local/include
PATHS /usr/local/include
)
)
get_filename_component(cudnn_hint_path ${CUDA_CUBLAS_LIBRARIES} PATH)
get_filename_component(cudnn_hint_path ${CUDA_CUBLAS_LIBRARIES} PATH)
find_library(cudnn cudnn
find_library(cudnn cudnn
HINTS ${cudnn_hint_path} $ENV{CUDNN_LIBRARY_DIR}
HINTS ${cudnn_hint_path} $
{CUDNN_LIBRARY_DIR} $
ENV{CUDNN_LIBRARY_DIR}
PATHS /usr/local/lib64
PATHS /usr/local/lib64
/usr/local/cuda/lib64
/usr/local/cuda/lib64
/usr/local/cuda/lib
/usr/local/cuda/lib
...
...
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