Skip to content

Fix CUDA 12.0 build errors#23037

Merged
opencv-pushbot merged 1 commit intoopencv:4.xfrom
cudawarped:fix_for_cuda_12
Dec 27, 2022
Merged

Fix CUDA 12.0 build errors#23037
opencv-pushbot merged 1 commit intoopencv:4.xfrom
cudawarped:fix_for_cuda_12

Conversation

@cudawarped
Copy link
Copy Markdown
Contributor

@cudawarped cudawarped commented Dec 26, 2022

Fixes #23034

Fix build errors reported in #23034

Confirmed builds with CUDA 12.0, CuDNN 8.7.0.84, Nvidia Video Codec SDK 12.0 on both

  • Windows 11 22H2: Visual Studio 2022 (17.43)

  • Ubuntu 20.04 LTS (WSL): g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake
buildworker:Custom=linux-1
build_image:Custom=ubuntu-cuda:16.04

@asmorkalov asmorkalov self-requested a review December 26, 2022 15:03
@asmorkalov asmorkalov self-assigned this Dec 26, 2022
@asmorkalov
Copy link
Copy Markdown
Contributor

Works for me in 2 configurations:

  • Ubuntu 20.04 + CUDA 12.0
  • Ubuntu 18.04 + CUDA 10.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could not build OpenCV 4.x WITH_CUDA=ON(CUDA 12.0)

4 participants