Skip to content

Conversation

cudawarped
Copy link
Contributor

Dependant on opencv/opencv#27734

CUDA 13.0 has depreciated legacy vecor types double4 and ulonglong4 which are both set for removal in CUDA 14.0. Even though CUDA 14.0 is a long way off these warnings flood the build output and this PR adds new compatibility header to address this.

@asmorkalov In the heavily templated headers I have maintained the same type names (double4 and ulonglong4) but imported them into the local namespaces to avoid having to specialize all the functions for the new type. If this is too fragile I can use the new compat types everywhere and add specific specializations for it instead?

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

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.

1 participant