mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 04:19:08 +08:00
[cudnn] Fix port: install find module, add usage (#17644)
* [cudnn] Fix port * [cudnn] Update version * x-add-version again...
This commit is contained in:
parent
d77e767599
commit
a0bed69632
@ -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
|
||||
|
@ -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})
|
||||
|
10
ports/cudnn/usage
Normal file
10
ports/cudnn/usage
Normal file
@ -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)
|
@ -1530,7 +1530,7 @@
|
||||
},
|
||||
"cudnn": {
|
||||
"baseline": "7.6.5",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"cunit": {
|
||||
"baseline": "2.1.3-6",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "00e54079329e9cc4f1f623dce3bc39b0f19e958d",
|
||||
"version-string": "7.6.5",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "5581791a9ad35390ed30629985b3863cf8b85bba",
|
||||
"version-string": "7.6.5",
|
||||
|
Loading…
Reference in New Issue
Block a user