Skip to content

[opencv4] Fix CUDA 13.2.#51434

Merged
BillyONeal merged 10 commits into
microsoft:masterfrom
BillyONeal:opencv4-cuda-13-2
May 1, 2026
Merged

[opencv4] Fix CUDA 13.2.#51434
BillyONeal merged 10 commits into
microsoft:masterfrom
BillyONeal:opencv4-cuda-13-2

Conversation

@BillyONeal

Copy link
Copy Markdown
Member

This mostly uses upstream's patches were possible.
Also fixes vcpkg-ci-opencv in #51210

This mostly uses upstream's patches were possible.
Also fixes vcpkg-ci-opencv in microsoft#51210

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the opencv4 vcpkg port to restore/build compatibility with CUDA 13.2 (and related CI images), primarily by pulling in upstream fixes and bumping the port-version.

Changes:

  • Bump opencv4 port-version from 1 → 2 and update the baseline/versions entries accordingly.
  • Apply upstream OpenCV CUDA 13 support patch and add an MSVC CUDA compilation workaround patch.
  • Add OpenCV contrib CUDA-related fix patches (downloaded from upstream commits) and refresh several existing patch files to match the updated upstream sources.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
versions/o-/opencv4.json Adds a new 4.12.0 port-version: 2 entry pointing at the updated port tree.
versions/baseline.json Updates the baseline opencv4 port-version to 2.
ports/opencv4/vcpkg.json Bumps port-version to 2.
ports/opencv4/portfile.cmake Downloads/applies CUDA 13.2-related upstream diffs and wires in the new patch.
ports/opencv4/0024-cuda-msvc-preprocessor.patch Adds /Zc:preprocessor for MSVC CUDA compilation.
ports/opencv4/0022-android-use-vcpkg-cpu-features.patch Refreshes patch metadata/offsets for the current upstream revision.
ports/opencv4/0007-contrib-fix-hdf5.patch Refreshes patch metadata/offsets and adjusts HDF5 handling in contrib.
ports/opencv4/0003-force-package-requirements.patch Refreshes patch metadata/offsets for updated upstream sources.
ports/opencv4/0002-install-options.patch Refreshes patch metadata/offsets; adjusts several OpenCV install/config behaviors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ports/opencv4/portfile.cmake

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ports/opencv4/portfile.cmake Outdated
Comment thread ports/opencv4/portfile.cmake
Comment thread ports/opencv4/0007-contrib-fix-hdf5.patch

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BillyONeal

Copy link
Copy Markdown
Member Author

I need to redo this to integrate #51143

@BillyONeal BillyONeal marked this pull request as draft April 29, 2026 16:43
# Conflicts:
#	ports/opencv4/portfile.cmake
#	versions/o-/opencv4.json
@BillyONeal BillyONeal marked this pull request as ready for review April 29, 2026 16:52
@BillyONeal BillyONeal requested a review from Copilot April 29, 2026 16:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ports/opencv4/0026-cuda-msvc-preprocessor.patch Outdated
Comment thread ports/opencv4/portfile.cmake
@BillyONeal BillyONeal requested a review from Copilot April 30, 2026 01:55
@BillyONeal BillyONeal marked this pull request as ready for review April 30, 2026 01:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@BillyONeal BillyONeal marked this pull request as draft April 30, 2026 06:54
@BillyONeal BillyONeal marked this pull request as ready for review April 30, 2026 08:20
BillyONeal added a commit to BillyONeal/vcpkg that referenced this pull request Apr 30, 2026
@BillyONeal BillyONeal merged commit 4cf671c into microsoft:master May 1, 2026
16 checks passed
@BillyONeal BillyONeal deleted the opencv4-cuda-13-2 branch May 1, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants