Skip to content

Fix nvcc compile errors when built against CUDA SDK < 11.2#23012

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:fix_win32_cuda_warning
Dec 22, 2022
Merged

Fix nvcc compile errors when built against CUDA SDK < 11.2#23012
asmorkalov merged 1 commit intoopencv:4.xfrom
cudawarped:fix_win32_cuda_warning

Conversation

@cudawarped
Copy link
Copy Markdown
Contributor

@cudawarped cudawarped commented Dec 21, 2022

Fix #23010.

The ability to disable nvcc warnings wasn't introduced until CUDA 11.2 (https://docs.nvidia.com/cuda/archive/11.2.0/cuda-toolkit-release-notes/index.html)

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

@cudawarped cudawarped changed the title build: only disable win32 cuda warnings on CUDA SDK >= 11.2 Fix nvcc compile errors when built against CUDA SDK < 11.2 Dec 21, 2022
@asmorkalov asmorkalov self-requested a review December 21, 2022 15:30
@asmorkalov asmorkalov added the category: gpu/cuda (contrib) OpenCV 4.0+: moved to opencv_contrib label Dec 21, 2022
@asmorkalov asmorkalov added this to the 4.7.0 milestone Dec 21, 2022
@asmorkalov asmorkalov requested a review from stopmosk December 21, 2022 15:31
@stopmosk
Copy link
Copy Markdown
Contributor

OpenCV build Win32 with CUDA 11.8 was successful.

@asmorkalov asmorkalov merged commit 6459303 into opencv:4.x Dec 22, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
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.

OpenCV with CUDA cannot be compiled any more with Cuda 10.2 SDK (CMake)

3 participants