-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Added CUDA 12.4+ support #3744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added CUDA 12.4+ support #3744
Conversation
Yes, the solution is not complete yet. |
Your error has nothing to do with this PR. You are building against a commit in the contrib repo before #3378 was added when the line it mentions
was removed. |
Hey. So you're saying his pr not on latest opencv_contrib?? |
Exactly this PR is Open not Merged so it is on asmorkalov's private branch. Additionally you are not building against the latest commit from opencv_contrib 4.x either as indicated by your error. |
about that, I cloned and built his repo only. |
You must be building against a commit in his repo which pre-dates the PR (#3378) where the error you are getting would have been removed. You need to checkout his vardic_tuple branch. Either way you will still get errors with CUDA 12.5 at the moment. The point is that they will be different errors which are related to this PR. |
@cudawarped @vrabaud could you try the PR on your side and provide comments. I tested with Ubuntu 22.04, CUDA 12.5, cuDNN 9.1 and GeForce 2080. Please let me know, if you observe issues. |
I get the following error when building with Windows 11, CUDA 12.5, cuDNN 9.1
|
@cudawarped Thanks for the trial. You also need corresponding patch in main repo: opencv/opencv#25658 |
modules/cudev/include/opencv2/cudev/grid/detail/split_merge.hpp
Outdated
Show resolved
Hide resolved
Building on Windows 11 for both CUDA 12.3 and 12.5 and passing all CUDA tests on RTX 3070 except DNN and previously failing ones (#3374). |
a3caa83
to
56a6cdf
Compare
Adds a preprocessor check to conditionally include <cuda/std/tuple> only for CUDA versions 12.4 and above. This ensures backward compatibility with older legacy CUDA versions. Related to pull request opencv#3744
Adds a preprocessor check to conditionally include <cuda/std/tuple> only for CUDA versions 12.4 and above. This ensures backward compatibility with older legacy CUDA versions. Related to pull request opencv#3744
Add conditional include for <cuda/std/tuple> to support CUDA 12.4+ #3751 Fixes #3752 Adds a preprocessor check to conditionally include <cuda/std/tuple> only for CUDA versions 12.4 and above. This ensures backward compatibility with older legacy CUDA versions. Related to pull request #3744 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] 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 - [x] 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
Add conditional include for <cuda/std/tuple> to support CUDA 12.4+ opencv#3751 Fixes opencv#3752 Adds a preprocessor check to conditionally include <cuda/std/tuple> only for CUDA versions 12.4 and above. This ensures backward compatibility with older legacy CUDA versions. Related to pull request opencv#3744 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] 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 - [x] 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 (cherry picked from commit b236c71)
Tries to fix #3690 for CUDA 12.4+
Related patch to main repo: opencv/opencv#25658
Changes:
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.