Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vurusovs
Copy link
Contributor

No description provided.

@vurusovs vurusovs requested a review from a team as a code owner January 17, 2024 07:58
@github-actions github-actions bot added category: build OpenVINO cmake script / infra category: NVIDIA plugin OpenVINO NVIDIA plugin labels Jan 17, 2024
@@ -51,6 +51,7 @@ target_include_directories(${OBJ_NAME}
)
target_include_directories(${OBJ_NAME}
PUBLIC
"${CUDNN_INCLUDE_DIR}"
Copy link
Contributor Author

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}"

Copy link
Contributor

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)
Copy link
Contributor

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..

@ilya-lavrenov ilya-lavrenov changed the title Add CUDNN_INCLUDE_DIR [NVIDIA] Add CUDNN_INCLUDE_DIR Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra category: NVIDIA plugin OpenVINO NVIDIA plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants