Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 913655 Details for
Bug 946150
media-libs/opencv-4.10.0: CUDA 10.2 compatiblity
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make changes pertaining to CUDA 12.4+ only apply for such versions
0001-Merge-pull-request-3751-from-peters-4.x.patch (text/plain), 2.43 KB, created by
Dirk Tilger
on 2024-12-09 13:24:55 UTC
(
hide
)
Description:
Patch to make changes pertaining to CUDA 12.4+ only apply for such versions
Filename:
MIME Type:
Creator:
Dirk Tilger
Created:
2024-12-09 13:24:55 UTC
Size:
2.43 KB
patch
obsolete
>From 26bc5d19bad6129514db851b64bf72187be52611 Mon Sep 17 00:00:00 2001 >From: Peter Rekdal Khan-Sunde <peter.sunde@gmail.com> >Date: Thu, 6 Jun 2024 13:26:15 +0200 >Subject: [PATCH] Merge pull request #3751 from peters:4.x > >Add conditional include for <cuda/std/tuple> to support CUDA 12.4+ #3751 > >Fixes https://github.com/opencv/opencv_contrib/issues/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 > >(cherry picked from commit b236c71c2f8d983403c35a0cea8bec0432a4b0fe) >Signed-off-by: Dirk <dirk@systemication.com> >--- > modules/cudev/include/opencv2/cudev/ptr2d/zip.hpp | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/modules/cudev/include/opencv2/cudev/ptr2d/zip.hpp b/modules/cudev/include/opencv2/cudev/ptr2d/zip.hpp >index f5a3f8c8..f60ab5d0 100644 >--- a/modules/cudev/include/opencv2/cudev/ptr2d/zip.hpp >+++ b/modules/cudev/include/opencv2/cudev/ptr2d/zip.hpp >@@ -49,7 +49,9 @@ > #include "../common.hpp" > #include "../util/tuple.hpp" > #include "traits.hpp" >+#if defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ > 12 || (__CUDACC_VER_MAJOR__ == 12 && __CUDACC_VER_MINOR__ >= 4)) > #include <cuda/std/tuple> >+#endif > > namespace cv { namespace cudev { > >@@ -176,6 +178,7 @@ template <class PtrTuple> struct PtrTraits< ZipPtrSz<PtrTuple> > : PtrTraitsBase > > }} > >+#if defined(__CUDACC_VER_MAJOR__) && (__CUDACC_VER_MAJOR__ > 12 || (__CUDACC_VER_MAJOR__ == 12 && __CUDACC_VER_MINOR__ >= 4)) > _LIBCUDACXX_BEGIN_NAMESPACE_STD > > template< class... Types > >@@ -198,3 +201,4 @@ struct tuple_element<N, cv::cudev::ZipPtrSz<tuple<Types...> > > > _LIBCUDACXX_END_NAMESPACE_STD > > #endif >+#endif >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 946150
:
913654
| 913655