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:
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user