We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432d0fd commit 1c49796Copy full SHA for 1c49796
modules/core/include/opencv2/core/cv_cpu_dispatch.h
@@ -121,8 +121,8 @@ struct VZeroUpperGuard {
121
122
123
124
-#if !defined __OPENCV_BUILD // Compatibility code
125
-
+#if !defined __OPENCV_BUILD /* Compatibility code */ \
+ && !defined __CUDACC__ /* do not include SSE/AVX/NEON headers for NVCC compiler */
126
#if defined __SSE2__ || defined _M_X64 || (defined _M_IX86_FP && _M_IX86_FP >= 2)
127
# include <emmintrin.h>
128
# define CV_MMX 1
@@ -137,7 +137,7 @@ struct VZeroUpperGuard {
137
# define CV_NEON 1
138
#endif
139
140
-#endif // !__OPENCV_BUILD (Compatibility code)
+#endif // !__OPENCV_BUILD && !__CUDACC (Compatibility code)
141
142
143
0 commit comments