Skip to content

Commit

Permalink
[CUDA, CUDNN] fix support clause (#23900)
Browse files Browse the repository at this point in the history
* [CUDA, CUDNN] fix support clause

* [cuda] use version key

* [opencv2] format manifest

* fix references

* Update vcpkg.json

* Update vcpkg.json

* Update version database

* Update version database.

* fix feature descriptions

* fix references

* add missing licenses

* fix references

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
  • Loading branch information
cenit and BillyONeal authored Apr 5, 2022
1 parent 5bf1323 commit e79aaaa
Show file tree
Hide file tree
Showing 14 changed files with 52 additions and 24 deletions.
7 changes: 4 additions & 3 deletions ports/cuda/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "cuda",
"version-string": "10.1",
"port-version": 9,
"version": "10.1",
"port-version": 10,
"description": "A parallel computing platform and programming model",
"homepage": "https://developer.nvidia.com/cuda-toolkit",
"supports": "linux | (!osx & !uwp & !(arm64 & windows))"
"license": null,
"supports": "(windows & x64 & !uwp) | (linux & x64) | (linux & arm64)"
}
5 changes: 3 additions & 2 deletions ports/cudnn/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "cudnn",
"version": "7.6.5",
"port-version": 4,
"port-version": 5,
"description": "NVIDIA's cuDNN deep neural network acceleration library.",
"homepage": "https://developer.nvidia.com/cudnn",
"supports": "(windows | linux) & x64",
"license": null,
"supports": "(windows & x64 & !uwp) | (linux & x64) | (linux & arm64)",
"dependencies": [
"cuda"
]
Expand Down
10 changes: 2 additions & 8 deletions ports/opencv2/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ if (EXISTS "${CURRENT_INSTALLED_DIR}/share/opencv4")
message(FATAL_ERROR "OpenCV 4 is installed, please uninstall and try again:\n vcpkg remove opencv4")
endif()

if (VCPKG_TARGET_IS_UWP)
# - opengl feature is broken on UWP
# - jasper and openexr are not available on UWP due to missing dependencies
# - opencv2 code itself fails even if previous conditions are avoided
message(FATAL_ERROR "${PORT} doesn't support UWP")
endif()

set(OPENCV_VERSION "2.4.13.7")
file(READ "${CMAKE_CURRENT_LIST_DIR}/vcpkg.json" _contents)
string(JSON OPENCV_VERSION GET "${_contents}" version)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
Expand Down
6 changes: 4 additions & 2 deletions ports/opencv2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "opencv2",
"version": "2.4.13.7",
"port-version": 9,
"port-version": 10,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "BSD-3-Clause",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
Expand Down Expand Up @@ -70,7 +72,7 @@
]
},
"gtk": {
"description": "GDCM support for opencv",
"description": "GTK support for opencv",
"dependencies": [
"gtk"
]
Expand Down
4 changes: 3 additions & 1 deletion ports/opencv3/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ if (EXISTS "${CURRENT_INSTALLED_DIR}/share/opencv4")
message(FATAL_ERROR "OpenCV 4 is installed, please uninstall and try again:\n vcpkg remove opencv4")
endif()

set(OPENCV_VERSION "3.4.16")
file(READ "${CMAKE_CURRENT_LIST_DIR}/vcpkg.json" _contents)
string(JSON OPENCV_VERSION GET "${_contents}" version)

set(USE_QT_VERSION "5")

vcpkg_from_github(
Expand Down
2 changes: 1 addition & 1 deletion ports/opencv3/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "opencv3",
"version": "3.4.16",
"port-version": 4,
"port-version": 5,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "BSD-3-Clause",
Expand Down
4 changes: 3 additions & 1 deletion ports/opencv4/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ if (EXISTS "${CURRENT_INSTALLED_DIR}/share/opencv3")
message(FATAL_ERROR "OpenCV 3 is installed, please uninstall and try again:\n vcpkg remove opencv3")
endif()

set(OPENCV_VERSION "4.5.5")
file(READ "${CMAKE_CURRENT_LIST_DIR}/vcpkg.json" _contents)
string(JSON OPENCV_VERSION GET "${_contents}" version)

set(USE_QT_VERSION "5")

vcpkg_from_github(
Expand Down
3 changes: 2 additions & 1 deletion ports/opencv4/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "opencv4",
"version": "4.5.5",
"port-version": 1,
"description": "computer vision library",
"homepage": "https://github.com/opencv/opencv",
"license": "Apache-2.0",
Expand Down Expand Up @@ -136,7 +137,7 @@
]
},
"gtk": {
"description": "GDCM support for opencv",
"description": "GTK support for opencv",
"dependencies": [
"gtk"
]
Expand Down
10 changes: 5 additions & 5 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1714,11 +1714,11 @@
},
"cuda": {
"baseline": "10.1",
"port-version": 9
"port-version": 10
},
"cudnn": {
"baseline": "7.6.5",
"port-version": 4
"port-version": 5
},
"cunit": {
"baseline": "2.1.3",
Expand Down Expand Up @@ -5062,15 +5062,15 @@
},
"opencv2": {
"baseline": "2.4.13.7",
"port-version": 9
"port-version": 10
},
"opencv3": {
"baseline": "3.4.16",
"port-version": 4
"port-version": 5
},
"opencv4": {
"baseline": "4.5.5",
"port-version": 0
"port-version": 1
},
"opendnp3": {
"baseline": "3.1.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/cuda.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "4e8939c3547a570a73098c091da7b9e28f71015c",
"version": "10.1",
"port-version": 10
},
{
"git-tree": "7895738a8a164beddfb53c4c69352b202d8e13e9",
"version-string": "10.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/cudnn.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "62f2616b19fe2b3b7dbc8a81e190900819f2ba3e",
"version": "7.6.5",
"port-version": 5
},
{
"git-tree": "c23360a6cfba2b5c8962c0c106d165ca31224162",
"version": "7.6.5",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencv2.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "04d0949582f825d8a93c13fe0be0acbe8183073b",
"version": "2.4.13.7",
"port-version": 10
},
{
"git-tree": "e02e468ae088086be3b3579366e0bc4c3c8be6cc",
"version": "2.4.13.7",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencv3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "55064c574fa80aef66dd85a330f669ba7ad402e9",
"version": "3.4.16",
"port-version": 5
},
{
"git-tree": "7060d481bf3045fdd24aa8ef0d83cf2db3b13a50",
"version": "3.4.16",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/opencv4.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "dcdd746ffc69d5f3234b67ee17fdd54966c8f5cb",
"version": "4.5.5",
"port-version": 1
},
{
"git-tree": "afed148d21295bf99e8ac657fdb808ed82467871",
"version": "4.5.5",
Expand Down

0 comments on commit e79aaaa

Please sign in to comment.