-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NVIDIA] Add CUDNN_INCLUDE_DIR
#831
base: master
Are you sure you want to change the base?
Conversation
@@ -51,6 +51,7 @@ target_include_directories(${OBJ_NAME} | |||
) | |||
target_include_directories(${OBJ_NAME} | |||
PUBLIC | |||
"${CUDNN_INCLUDE_DIR}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-lavrenov could you take a look? Without it cudnn.h wasn't found even if I specified INTERFACE_INCLUDE_DIRECTORIES "${CUDNN_INCLUDE_DIR}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's strange because we have linkage with CUDA::cutensor
below and it should populate headers we set before.
But let's avoid spending extra time on it :)
@@ -92,6 +92,8 @@ find_library(CUDNN_PATH | |||
${HAS_REQUIRED} | |||
HINTS "$ENV{CUDNN_PATH}" "${CUDA_TOOLKIT_ROOT_DIR}" "${CUDA_PATH}" "$ENV{CUDA_PATH}" | |||
PATH_SUFFIXES nvidia/current lib64 lib/x64 lib) | |||
get_filename_component(CUDNN_INCLUDE_DIR "${CUDNN_PATH}" DIRECTORY) | |||
get_filename_component(CUDNN_INCLUDE_DIR "${CUDNN_INCLUDE_DIR}/../../include" REALPATH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we need to find headers instead of simple relative paths..
No description provided.