aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kahn <jacobkahn1@gmail.com>2021-05-18 02:28:38 -0500
committerGitHub <noreply@github.com>2021-05-18 00:28:38 -0700
commita0bed696328bc593165a23bf118e20486a2c7fa7 (patch)
tree020de3975b3469324ad142e55e0991fb36cb23c2
parentd77e7675990ac4c5727a40c50b91da59aada8333 (diff)
downloadvcpkg-a0bed696328bc593165a23bf118e20486a2c7fa7.tar.gz
vcpkg-a0bed696328bc593165a23bf118e20486a2c7fa7.zip
[cudnn] Fix port: install find module, add usage (#17644)
* [cudnn] Fix port * [cudnn] Update version * x-add-version again...
-rw-r--r--ports/cudnn/CONTROL2
-rw-r--r--ports/cudnn/portfile.cmake3
-rw-r--r--ports/cudnn/usage10
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/c-/cudnn.json5
5 files changed, 20 insertions, 2 deletions
diff --git a/ports/cudnn/CONTROL b/ports/cudnn/CONTROL
index db910a7bc..724918356 100644
--- a/ports/cudnn/CONTROL
+++ b/ports/cudnn/CONTROL
@@ -1,6 +1,6 @@
Source: cudnn
Version: 7.6.5
-Port-Version: 2
+Port-Version: 3
Description: NVIDIA's cuDNN deep neural network acceleration library
Build-Depends: cuda
Supports: (windows|linux)&x64
diff --git a/ports/cudnn/portfile.cmake b/ports/cudnn/portfile.cmake
index 6a0083130..7ec09f030 100644
--- a/ports/cudnn/portfile.cmake
+++ b/ports/cudnn/portfile.cmake
@@ -70,3 +70,6 @@ elseif(VCPKG_TARGET_IS_WINDOWS)
else()
message(FATAL_ERROR "Please install CUDNN using your system package manager (the same way you installed CUDA). For example: apt install libcudnn8-dev.")
endif()
+
+file(INSTALL "${CURRENT_PORT_DIR}/FindCUDNN.cmake" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
+file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
diff --git a/ports/cudnn/usage b/ports/cudnn/usage
new file mode 100644
index 000000000..f528e0154
--- /dev/null
+++ b/ports/cudnn/usage
@@ -0,0 +1,10 @@
+The package cudnn provides CMake variables:
+
+ find_package(CUDNN REQUIRED)
+ target_link_libraries(main PRIVATE ${CUDNN_LIBRARIES})
+ target_include_directories(main PRIVATE ${CUDNN_INCLUDE_DIRS})
+
+Or the following CMake target:
+
+ find_package(CUDNN REQUIRED)
+ target_link_libraries(main PRIVATE CuDNN::CuDNN)
diff --git a/versions/baseline.json b/versions/baseline.json
index 7508a2986..d419f8575 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -1530,7 +1530,7 @@
},
"cudnn": {
"baseline": "7.6.5",
- "port-version": 2
+ "port-version": 3
},
"cunit": {
"baseline": "2.1.3-6",
diff --git a/versions/c-/cudnn.json b/versions/c-/cudnn.json
index cc7e05d0c..5dfd33643 100644
--- a/versions/c-/cudnn.json
+++ b/versions/c-/cudnn.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "00e54079329e9cc4f1f623dce3bc39b0f19e958d",
+ "version-string": "7.6.5",
+ "port-version": 3
+ },
+ {
"git-tree": "5581791a9ad35390ed30629985b3863cf8b85bba",
"version-string": "7.6.5",
"port-version": 2