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
a9d4b15b
Commit
a9d4b15b
authored
Mar 03, 2016
by
Daniel Crispell
Browse files
Check CUDNN environment variables for path
parent
6f46af23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/dnn/test_for_cudnn/find_cudnn.txt
dlib/dnn/test_for_cudnn/find_cudnn.txt
+2
-2
No files found.
dlib/dnn/test_for_cudnn/find_cudnn.txt
View file @
a9d4b15b
...
@@ -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}
HINTS ${CUDA_INCLUDE_DIRS}
$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}
HINTS ${cudnn_hint_path}
$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