You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/09/12 19:31:29 UTC

[GitHub] anirudh2290 commented on a change in pull request #11585: Adds support for finding cudnn inside cuda path

anirudh2290 commented on a change in pull request #11585: Adds support for finding cudnn inside cuda path
URL: https://github.com/apache/incubator-mxnet/pull/11585#discussion_r217160460
 
 

 ##########
 File path: cmake/FirstClassLangCuda.cmake
 ##########
 @@ -32,12 +32,12 @@ function(detect_cuDNN)
   set(CUDNN_ROOT "" CACHE PATH "CUDNN root folder")
 
   find_path(CUDNN_INCLUDE cudnn.h
-            PATHS ${CUDNN_ROOT} $ENV{CUDNN_ROOT}
+            PATHS ${CUDNN_ROOT} $ENV{CUDNN_ROOT} ${CUDA_TOOLKIT_ROOT_DIR}
             DOC "Path to cuDNN include directory." )
 
 
   find_library(CUDNN_LIBRARY NAMES libcudnn.so cudnn.lib # libcudnn_static.a
-                             PATHS ${CUDNN_ROOT} $ENV{CUDNN_ROOT} ${CUDNN_INCLUDE}
+                             PATHS ${CUDNN_ROOT} $ENV{CUDNN_ROOT} ${CUDNN_INCLUDE} ${CUDA_TOOLKIT_ROOT_DIR}
 
 Review comment:
   what scenario is this needed to make it work ? I don't have CUDNN_ROOT set but it still is able to find CUDNN_LIBRARY. is it when cuda is installed to a custom dir outside /usr or /usr/local

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services