1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

cuda: add compatibility layer for depreciated vector types

This commit is contained in:
cudawarped
2025-08-23 09:24:05 +03:00
parent d9556920dc
commit ca35ed2f1c
5 changed files with 54 additions and 4 deletions
+4 -1
View File
@@ -11,6 +11,7 @@
#include "memory.hpp"
#include "../cuda4dnn/csl/pointer.hpp"
#include "opencv2/core/cuda/cuda_compat.hpp"
#include <type_traits>
@@ -34,9 +35,11 @@ namespace cv { namespace dnn { namespace cuda4dnn { namespace csl { namespace de
* v_store(output_vPtr, vec);
*/
using cv::cuda::device::compat::ulonglong4Compat;
namespace detail {
template <size_type N> struct raw_type_ { };
template <> struct raw_type_<256> { typedef ulonglong4 type; };
template <> struct raw_type_<256> { typedef ulonglong4Compat type; };
template <> struct raw_type_<128> { typedef uint4 type; };
template <> struct raw_type_<64> { typedef uint2 type; };
template <> struct raw_type_<32> { typedef uint1 type; };