# \[ WARN:0@1.416\] global net\_impl.cpp:174 setUpNet DNN module was not built with CUDA backend; switching to CPU

**URL:** <https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707>\
**Category:** C++\
**Tags:** dnn, build, cuda\
**Created:** [September 30, 2023, 10:35am UTC](https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707 "2023-09-30T10:35:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neeraj\_Dhekale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/neeraj_dhekale/32/8819_2.png) [@Neeraj\_Dhekale](https://forum.opencv.org/u/Neeraj_Dhekale)\
**Post date:** [September 30, 2023, 10:35am UTC](https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707/1 "2023-09-30T10:35:59Z")

</div>

I am using OpenCV 4.8.0 and also make sure CuDNN and CUDA is installed from below command:

cmake -D CMAKE\_BUILD\_TYPE=RELEASE   
-D CMAKE\_INSTALL\_PREFIX=/usr/local   
-D INSTALL\_PYTHON\_EXAMPLES=ON   
-D INSTALL\_C\_EXAMPLES=OFF   
-D OPENCV\_ENABLE\_NONFREE=ON   
-D WITH\_CUDA=ON   
-D WITH\_CUDNN=ON   
-D WITH\_CUDNN=ON   
-D OPENCV\_DNN\_CUDA=ON   
-D ENABLE\_FAST\_MATH=1   
-D BUILD\_OPENCV\_WORLD=ON   
-D CUDA\_FAST\_MATH=1   
-D CUDA\_ARCH\_BIN=8.7   
-D WITH\_CUBLAS=1   
-D OPENCV\_DNN\_CUDA=ON   
-D ENABLE\_FAST\_MATH=1   
-D CUDA\_FAST\_MATH=1   
-D CUDA\_ARCH\_BIN=6.1   
-D WITH\_CUBLAS=1   
-D OPENCV\_EXTRA\_MODULES\_PATH=/home/neeraj/Applications/OpenCV/opencv\_contrib/modules   
-D CUDNN\_LIBRARY=/usr/lib/cuda/lib64/libcudnn.so.8.9.5   
-D CUDNN\_INCLUDE\_DIR=/usr/lib/cuda/include   
-D HAVE\_opencv\_python3=ON   
-D PYTHON\_EXECUTABLE=~/.virtualenvs/opencv\_dnn\_cuda/bin/python   
-D BUILD\_EXAMPLES=OFF ..

from below output:

– ocv\_init\_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from [github.com](http://github.com) by default.  
– Detected processor: x86\_64  
CMake Warning (dev) at cmake/OpenCVUtils.cmake:144 (find\_package):  
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules  
are removed. Run “cmake --help-policy CMP0148” for policy details. Use  
the cmake\_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):  
cmake/OpenCVDetectPython.cmake:64 (find\_host\_package)  
cmake/OpenCVDetectPython.cmake:271 (find\_python)  
CMakeLists.txt:649 (include)  
This warning is for project developers. Use -Wno-dev to suppress it.

– Looking for ccache - found (/usr/bin/ccache)  
– Found ZLIB: /usr/lib/x86\_64-linux-gnu/libz.so (found suitable version “1.2.11”, minimum required is “1.2.3”)  
Cleaning INTERNAL cached variable: WEBP\_LIBRARY  
Cleaning INTERNAL cached variable: WEBP\_INCLUDE\_DIR  
– Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version \>= 2.3.1). OpenJPEG will be built from sources  
– OpenJPEG: VERSION = 2.5.0, BUILD = opencv-4.8.0-openjp2-2.5.0  
– OpenJPEG libraries will be built from sources: libopenjp2 (version “2.5.0”)  
– Found ZLIB: /usr/lib/x86\_64-linux-gnu/libz.so (found version “1.2.11”)  
– Found OpenEXR: /usr/lib/x86\_64-linux-gnu/libIlmImf-2\_5.so  
– libva: missing va.h header (VA\_INCLUDE\_DIR)  
– found Intel IPP (ICV version): 2021.8.0 [2021.8]  
– at: /home/neeraj/Applications/OpenCV/opencv/build/3rdparty/ippicv/ippicv\_lnx/icv  
– found Intel IPP Integration Wrappers sources: 2021.8.0  
– at: /home/neeraj/Applications/OpenCV/opencv/build/3rdparty/ippicv/ippicv\_lnx/iw  
CMake Warning (dev) at cmake/OpenCVUtils.cmake:144 (find\_package):  
Policy CMP0146 is not set: The FindCUDA module is removed. Run “cmake  
–help-policy CMP0146” for policy details. Use the cmake\_policy command to  
set the policy and suppress this warning.

Call Stack (most recent call first):  
cmake/OpenCVDetectCUDA.cmake:21 (find\_host\_package)  
cmake/OpenCVFindLibsPerf.cmake:43 (include)  
CMakeLists.txt:756 (include)  
This warning is for project developers. Use -Wno-dev to suppress it.

## – CUDA detected: 11.5 – CUDA: Using CUDA\_ARCH\_BIN=6.1 – CUDA NVCC target flags: -gencode;arch=compute\_61,code=sm\_61;-D\_FORCE\_INLINES – Could not find OpenBLAS include. Turning OpenBLAS\_FOUND off – Could not find OpenBLAS lib. Turning OpenBLAS\_FOUND off – Could NOT find Atlas (missing: Atlas\_CLAPACK\_INCLUDE\_DIR) – VTK is not found. Please set -DVTK\_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file – Checking for module ‘libavresample’ – No package ‘libavresample’ found – freetype2: YES (ver 24.1.18) – harfbuzz: YES (ver 2.7.4) – Could NOT find HDF5 (missing: HDF5\_LIBRARIES HDF5\_INCLUDE\_DIRS) (found version “”) – Julia not found. Not compiling Julia Bindings. – Module opencv\_ovis disabled because OGRE3D was not found – No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available. – Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake. – Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components. – Failed to find gflags - Could not find gflags include directory, set GFLAGS\_INCLUDE\_DIR to directory containing gflags/gflags.h – Failed to find glog - Could not find glog include directory, set GLOG\_INCLUDE\_DIR to directory containing glog/logging.h – Module opencv\_sfm disabled because the following dependencies are not found: Glog/Gflags – Checking for module ‘tesseract’ – No package ‘tesseract’ found – Tesseract: NO – Allocator metrics storage type: ‘long long’ – Excluding from source files list: modules/imgproc/src/imgwarp.lasx.cpp – Excluding from source files list: modules/imgproc/src/resize.lasx.cpp – Registering hook ‘INIT\_MODULE\_SOURCES\_opencv\_dnn’: /home/neeraj/Applications/OpenCV/opencv/modules/dnn/cmake/hooks/INIT\_MODULE\_SOURCES\_opencv\_dnn.cmake – Excluding from source files list: /modules/dnn/layers/layers\_common.rvv.cpp – Excluding from source files list: /modules/dnn/layers/layers\_common.lasx.cpp – Excluding from source files list: /modules/dnn/int8layers/layers\_common.lasx.cpp – Excluding from source files list: /modules/dnn/layers/cpu\_kernels/conv\_depthwise.rvv.cpp – Excluding from source files list: /modules/dnn/layers/cpu\_kernels/conv\_depthwise.lasx.cpp – highgui: using builtin backend: GTK3 – Building with NVIDIA Optical Flow API 2.0 – Found ‘misc’ Python modules from /home/neeraj/Applications/OpenCV/opencv/modules/python/package/extra\_modules – Found ‘mat\_wrapper;utils’ Python modules from /home/neeraj/Applications/OpenCV/opencv/modules/core/misc/python/package – Found ‘gapi’ Python modules from /home/neeraj/Applications/OpenCV/opencv/modules/gapi/misc/python/package – Found ‘misc’ Python modules from /home/neeraj/Applications/OpenCV/opencv/modules/python/package/extra\_modules – Found ‘mat\_wrapper;utils’ Python modules from /home/neeraj/Applications/OpenCV/opencv/modules/core/misc/python/package – Found ‘gapi’ Python modules from /home/neeraj/Applications/OpenCV/opencv/modules/gapi/misc/python/package

## – General configuration for OpenCV 4.8.0 ===================================== – Version control: unknown

## – Extra modules: – Location (extra): /home/neeraj/Applications/OpenCV/opencv\_contrib/modules – Version control (extra): unknown

## – Platform: – Timestamp: 2023-09-28T11:17:53Z – Host: Linux 6.2.0-33-generic x86\_64 – CMake: 3.27.4 – CMake generator: Unix Makefiles – CMake build tool: /usr/bin/gmake – Configuration: RELEASE

## – CPU/HW features: – Baseline: SSE SSE2 SSE3 – requested: SSE3 – Dispatched code generation: SSE4\_1 SSE4\_2 FP16 AVX AVX2 AVX512\_SKX – requested: SSE4\_1 SSE4\_2 AVX FP16 AVX2 AVX512\_SKX – SSE4\_1 (18 files): + SSSE3 SSE4\_1 – SSE4\_2 (2 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 – FP16 (1 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 AVX – AVX (8 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 AVX – AVX2 (37 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2 – AVX512\_SKX (8 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2 AVX\_512F AVX512\_COMMON AVX512\_SKX

## – C/C++: – Built as dynamic libs?: YES – C++ standard: 11 – C++ Compiler: /usr/bin/c++ (ver 11.4.0) – C++ flags (Release): -fsigned-char -ffast-math -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG – C++ flags (Debug): -fsigned-char -ffast-math -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D\_DEBUG – C Compiler: /usr/bin/cc – C flags (Release): -fsigned-char -ffast-math -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG – C flags (Debug): -fsigned-char -ffast-math -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D\_DEBUG – Linker flags (Release): -Wl,–exclude-libs,libippicv.a -Wl,–exclude-libs,libippiw.a -Wl,–gc-sections -Wl,–as-needed -Wl,–no-undefined – Linker flags (Debug): -Wl,–exclude-libs,libippicv.a -Wl,–exclude-libs,libippiw.a -Wl,–gc-sections -Wl,–as-needed -Wl,–no-undefined – ccache: YES – Precompiled headers: NO – Extra dependencies: m pthread cudart\_static dl rt nppc nppial nppicc nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cudnn cufft -L/usr/lib/x86\_64-linux-gnu -L/usr/lib/cuda/lib64 – 3rdparty dependencies:

## – OpenCV modules: – To be built: alphamat aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn\_objdetect dnn\_superres dpm face features2d flann freetype fuzzy gapi hfs highgui img\_hash imgcodecs imgproc intensity\_transform java line\_descriptor mcc ml objdetect optflow phase\_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured\_light superres surface\_matching text tracking ts video videoio videostab wechat\_qrcode xfeatures2d ximgproc xobjdetect xphoto – Disabled: world – Disabled by dependency: - – Unavailable: cvv hdf julia matlab ovis python2 sfm viz – Applications: tests perf\_tests apps – Documentation: NO – Non-free algorithms: YES

## – GUI: GTK3 – GTK+: YES (ver 3.24.33) – GThread : YES (ver 2.72.4) – GtkGlExt: NO – VTK support: NO

## – Media I/O: – ZLib: /usr/lib/x86\_64-linux-gnu/libz.so (ver 1.2.11) – JPEG: /usr/lib/x86\_64-linux-gnu/libjpeg.so (ver 80) – WEBP: build (ver encoder: 0x020f) – PNG: /usr/lib/x86\_64-linux-gnu/libpng.so (ver 1.6.37) – TIFF: /usr/lib/x86\_64-linux-gnu/libtiff.so (ver 42 / 4.3.0) – JPEG 2000: build (ver 2.5.0) – OpenEXR: /usr/lib/x86\_64-linux-gnu/libImath-2\_5.so /usr/lib/x86\_64-linux-gnu/libIlmImf-2\_5.so /usr/lib/x86\_64-linux-gnu/libIex-2\_5.so /usr/lib/x86\_64-linux-gnu/libHalf-2\_5.so /usr/lib/x86\_64-linux-gnu/libIlmThread-2\_5.so (ver 2\_5) – HDR: YES – SUNRASTER: YES – PXM: YES – PFM: YES

## – Video I/O: – DC1394: YES (2.2.6) – FFMPEG: YES – avcodec: YES (58.134.100) – avformat: YES (58.76.100) – avutil: YES (56.70.100) – swscale: YES (5.9.100) – avresample: NO – GStreamer: YES (1.20.3) – v4l/v4l2: YES (linux/videodev2.h)

## – Parallel framework: pthreads

## – Trace: YES (with Intel ITT)

## – Other third-party libraries: – Intel IPP: 2021.8 [2021.8.0] – at: /home/neeraj/Applications/OpenCV/opencv/build/3rdparty/ippicv/ippicv\_lnx/icv – Intel IPP IW: sources (2021.8.0) – at: /home/neeraj/Applications/OpenCV/opencv/build/3rdparty/ippicv/ippicv\_lnx/iw – VA: NO – Lapack: NO – Eigen: YES (ver 3.4.0) – Custom HAL: NO – Protobuf: build (3.19.1) – Flatbuffers: builtin/3rdparty (23.5.9)

## – NVIDIA CUDA: YES (ver 11.5, CUFFT CUBLAS FAST\_MATH) – NVIDIA GPU arch: 61 – NVIDIA PTX archs:

## – cuDNN: YES (ver 8.9.5)

## – OpenCL: YES (no extra features) – Include path: /home/neeraj/Applications/OpenCV/opencv/3rdparty/include/opencl/1.2 – Link libraries: Dynamic load

## – Python 3: – Interpreter: /usr/bin/python3 (ver 3.10.12) – Libraries: /usr/lib/x86\_64-linux-gnu/libpython3.10.so (ver 3.10.12) – numpy: /usr/local/lib/python3.10/dist-packages/numpy/core/include (ver 1.22.4) – install path: lib/python3.10/dist-packages/cv2/python-3.10

## – Python (for build): /usr/bin/python3

## – Java: – ant: NO – Java: YES (ver 11.0.20) – JNI: /usr/lib/jvm/java-8-openjdk-amd64/include /usr/lib/jvm/java-8-openjdk-amd64/include/linux /usr/lib/jvm/java-8-openjdk-amd64/include – Java wrappers: YES (JAVA) – Java tests: NO

– Install to: /usr/local

* * *

–  
– Configuring done (17.4s)  
– Generating done (9.6s)  
– Build files have been written to: /home/neeraj/Applications/OpenCV/opencv/build

But when I am trying to execute **ultralytics/examples/YOLOv8-CPP-Inference**. I am getting a warning message. “[WARN:0@1.107] global net\_impl.cpp:174 setUpNet DNN module was not built with CUDA backend; switching to CPU”.

Am I doing anything wrong?

Please help.

Thanks in advance.

Thanks and regards,  
Neeraj Dhekale

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [September 30, 2023, 11:14am UTC](https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707/2 "2023-09-30T11:14:58Z")

</div>

> [@Neeraj\_Dhekale](#):
>
> But when I am trying to execute **ultralytics/examples/YOLOv8-CPP-Inference**.

please show exactly, what you’re doing here.

---

<div class="post-metadata">

**Author:** ![Neeraj\_Dhekale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/neeraj_dhekale/32/8819_2.png) [@Neeraj\_Dhekale](https://forum.opencv.org/u/Neeraj_Dhekale)\
**Post date:** [September 30, 2023, 12:50pm UTC](https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707/3 "2023-09-30T12:50:13Z")

</div>

Thank you @berak for the reply.  
in **YOLOv8-CPP-Inference**. folder I executed the below commands with success without any errors.

mkdir build  
cd build  
cmake …  
make

And then to execute the command :  
./Yolov8CPPInference

Output of each command given below:  
cmake …  
CMake Warning (dev) at CMakeLists.txt:9 (find\_package):  
Policy CMP0146 is not set: The FindCUDA module is removed. Run “cmake  
–help-policy CMP0146” for policy details. Use the cmake\_policy command to  
set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

– Configuring done (0.3s)  
– Generating done (0.0s)  
– Build files have been written to: /var/www/iot/OpenCV\_CPP/cpp\_test/ultralytics/examples/YOLOv8-CPP-Inference/build  
neeraj@neeraj-VivoBook-15-ASUS-Laptop-X507UF:/var/www/iot/OpenCV\_CPP/cpp\_test/ultralytics/examples/YOLOv8-CPP-Inference/build$ make  
[100%] Built target Yolov8CPPInference

I refer below link for the above steps.

> <https://github.com/ultralytics/ultralytics/tree/main/examples/YOLOv8-CPP-Inference>
>
> //github.com/ultralytics/ultralytics/tree/main/examples/YOLOv8-CPP-Inference

Thanks and regards,  
Neeraj Dhekale

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [September 30, 2023, 1:49pm UTC](https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707/4 "2023-09-30T13:49:31Z")

</div>

insert in your c++ code  
`cout << getBuildInformation() <<endl;`

to check cuda availabilty at runtime

---

<div class="post-metadata">

**Author:** ![Neeraj\_Dhekale](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/neeraj_dhekale/32/8819_2.png) [@Neeraj\_Dhekale](https://forum.opencv.org/u/Neeraj_Dhekale)\
**Post date:** [October 1, 2023, 11:41am UTC](https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707/5 "2023-10-01T11:41:32Z")

</div>

After inserting below code:  
`cout << getBuildInformation() <<endl;`

Output:

Running on CUDA  
[WARN:0@0.482] global net\_impl.cpp:174 setUpNet DNN module was not built with CUDA backend; switching to CPU  
Number of detections:5  
Gtk-Message: 17:09:59.667: Failed to load module “canberra-gtk-module”

General configuration for OpenCV 4.7.0-dev =====================================  
Version control: 4.7.0-117-g752ac19a2f

Extra modules:  
Location (extra): /opt/opencv\_contrib/modules  
Version control (extra): 4.7.0-25-g9d4b93a2

Platform:  
Timestamp: 2023-03-19T07:43:49Z  
Host: Linux 5.19.0-35-generic x86\_64  
CMake: 3.26.0  
CMake generator: Unix Makefiles  
CMake build tool: /usr/bin/gmake  
Configuration: RELEASE

CPU/HW features:  
Baseline: SSE SSE2 SSE3  
requested: SSE3  
disabled: AVX  
Dispatched code generation: SSE4\_1 SSE4\_2 FP16 AVX AVX2 AVX512\_SKX  
requested: SSE4\_1 SSE4\_2 AVX FP16 AVX2 AVX512\_SKX  
SSE4\_1 (16 files): + SSSE3 SSE4\_1  
SSE4\_2 (1 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2  
FP16 (0 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 AVX  
AVX (7 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 AVX  
AVX2 (34 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2  
AVX512\_SKX (5 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2 AVX\_512F AVX512\_COMMON AVX512\_SKX

C/C++:  
Built as dynamic libs?: YES  
C++ standard: 11  
C++ Compiler: /usr/bin/c++ (ver 11.3.0)  
C++ flags (Release): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG  
C++ flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D\_DEBUG  
C Compiler: /usr/bin/cc  
C flags (Release): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG  
C flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D\_DEBUG  
Linker flags (Release): -Wl,–gc-sections -Wl,–as-needed -Wl,–no-undefined  
Linker flags (Debug): -Wl,–gc-sections -Wl,–as-needed -Wl,–no-undefined  
ccache: YES  
Precompiled headers: NO  
Extra dependencies: dl m pthread rt  
3rdparty dependencies:

OpenCV modules:  
To be built: aruco barcode bgsegm bioinspired calib3d ccalib core datasets dnn dnn\_objdetect dnn\_superres dpm face features2d flann freetype fuzzy gapi hfs highgui img\_hash imgcodecs imgproc intensity\_transform line\_descriptor mcc ml objdetect optflow phase\_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured\_light superres surface\_matching text tracking video videoio videostab wechat\_qrcode xfeatures2d ximgproc xobjdetect xphoto  
Disabled: world  
Disabled by dependency: -  
Unavailable: alphamat cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv hdf java julia matlab ovis python2 sfm ts viz  
Applications: apps  
Documentation: NO  
Non-free algorithms: NO

GUI: GTK2  
GTK+: YES (ver 2.24.33)  
GThread : YES (ver 2.72.4)  
GtkGlExt: NO

Media I/O:  
ZLib: /usr/lib/x86\_64-linux-gnu/libz.so (ver 1.2.11)  
JPEG: /usr/lib/x86\_64-linux-gnu/libjpeg.so (ver 80)  
WEBP: build (ver encoder: 0x020f)  
PNG: /usr/lib/x86\_64-linux-gnu/libpng.so (ver 1.6.37)  
TIFF: build (ver 42 - 4.2.0)  
JPEG 2000: build (ver 2.4.0)  
OpenEXR: /usr/lib/x86\_64-linux-gnu/libImath-2\_5.so /usr/lib/x86\_64-linux-gnu/libIlmImf-2\_5.so /usr/lib/x86\_64-linux-gnu/libIex-2\_5.so /usr/lib/x86\_64-linux-gnu/libHalf-2\_5.so /usr/lib/x86\_64-linux-gnu/libIlmThread-2\_5.so (ver 2\_5)  
HDR: YES  
SUNRASTER: YES  
PXM: YES  
PFM: YES

Video I/O:  
DC1394: YES (2.2.6)  
FFMPEG: YES  
avcodec: YES (58.134.100)  
avformat: YES (58.76.100)  
avutil: YES (56.70.100)  
swscale: YES (5.9.100)  
avresample: NO  
GStreamer: YES (1.20.3)

Parallel framework: TBB (ver 2020.2 interface 11102)

Trace: YES (with Intel ITT)

Other third-party libraries:  
VA: NO  
Lapack: NO  
Custom HAL: NO  
Protobuf: build (3.19.1)  
Flatbuffers: builtin/3rdparty (23.1.21)

Python 3:  
Interpreter: /usr/bin/python3 (ver 3.10.6)  
Libraries: /usr/lib/x86\_64-linux-gnu/libpython3.10.so (ver 3.10.6)  
numpy: /usr/local/lib/python3.10/dist-packages/numpy/core/include (ver 1.22.4)  
install path: lib/python3.10/dist-packages/cv2/python-3.10

Python (for build): /usr/bin/python3

Java:  
ant: NO  
JNI: /usr/lib/jvm/java-8-openjdk-amd64/include /usr/lib/jvm/java-8-openjdk-amd64/include/linux /usr/lib/jvm/java-8-openjdk-amd64/include  
Java wrappers: NO  
Java tests: NO

## Install to: /usr/local

Number of detections:3

General configuration for OpenCV 4.7.0-dev =====================================  
Version control: 4.7.0-117-g752ac19a2f

Extra modules:  
Location (extra): /opt/opencv\_contrib/modules  
Version control (extra): 4.7.0-25-g9d4b93a2

Platform:  
Timestamp: 2023-03-19T07:43:49Z  
Host: Linux 5.19.0-35-generic x86\_64  
CMake: 3.26.0  
CMake generator: Unix Makefiles  
CMake build tool: /usr/bin/gmake  
Configuration: RELEASE

CPU/HW features:  
Baseline: SSE SSE2 SSE3  
requested: SSE3  
disabled: AVX  
Dispatched code generation: SSE4\_1 SSE4\_2 FP16 AVX AVX2 AVX512\_SKX  
requested: SSE4\_1 SSE4\_2 AVX FP16 AVX2 AVX512\_SKX  
SSE4\_1 (16 files): + SSSE3 SSE4\_1  
SSE4\_2 (1 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2  
FP16 (0 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 AVX  
AVX (7 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 AVX  
AVX2 (34 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2  
AVX512\_SKX (5 files): + SSSE3 SSE4\_1 POPCNT SSE4\_2 FP16 FMA3 AVX AVX2 AVX\_512F AVX512\_COMMON AVX512\_SKX

C/C++:  
Built as dynamic libs?: YES  
C++ standard: 11  
C++ Compiler: /usr/bin/c++ (ver 11.3.0)  
C++ flags (Release): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG  
C++ flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Wnon-virtual-dtor -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D\_DEBUG  
C Compiler: /usr/bin/cc  
C flags (Release): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG  
C flags (Debug): -fsigned-char -W -Wall -Wreturn-type -Waddress -Wsequence-point -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D\_DEBUG  
Linker flags (Release): -Wl,–gc-sections -Wl,–as-needed -Wl,–no-undefined  
Linker flags (Debug): -Wl,–gc-sections -Wl,–as-needed -Wl,–no-undefined  
ccache: YES  
Precompiled headers: NO  
Extra dependencies: dl m pthread rt  
3rdparty dependencies:

OpenCV modules:  
To be built: aruco barcode bgsegm bioinspired calib3d ccalib core datasets dnn dnn\_objdetect dnn\_superres dpm face features2d flann freetype fuzzy gapi hfs highgui img\_hash imgcodecs imgproc intensity\_transform line\_descriptor mcc ml objdetect optflow phase\_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured\_light superres surface\_matching text tracking video videoio videostab wechat\_qrcode xfeatures2d ximgproc xobjdetect xphoto  
Disabled: world  
Disabled by dependency: -  
Unavailable: alphamat cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv hdf java julia matlab ovis python2 sfm ts viz  
Applications: apps  
Documentation: NO  
Non-free algorithms: NO

GUI: GTK2  
GTK+: YES (ver 2.24.33)  
GThread : YES (ver 2.72.4)  
GtkGlExt: NO

Media I/O:  
ZLib: /usr/lib/x86\_64-linux-gnu/libz.so (ver 1.2.11)  
JPEG: /usr/lib/x86\_64-linux-gnu/libjpeg.so (ver 80)  
WEBP: build (ver encoder: 0x020f)  
PNG: /usr/lib/x86\_64-linux-gnu/libpng.so (ver 1.6.37)  
TIFF: build (ver 42 - 4.2.0)  
JPEG 2000: build (ver 2.4.0)  
OpenEXR: /usr/lib/x86\_64-linux-gnu/libImath-2\_5.so /usr/lib/x86\_64-linux-gnu/libIlmImf-2\_5.so /usr/lib/x86\_64-linux-gnu/libIex-2\_5.so /usr/lib/x86\_64-linux-gnu/libHalf-2\_5.so /usr/lib/x86\_64-linux-gnu/libIlmThread-2\_5.so (ver 2\_5)  
HDR: YES  
SUNRASTER: YES  
PXM: YES  
PFM: YES

Video I/O:  
DC1394: YES (2.2.6)  
FFMPEG: YES  
avcodec: YES (58.134.100)  
avformat: YES (58.76.100)  
avutil: YES (56.70.100)  
swscale: YES (5.9.100)  
avresample: NO  
GStreamer: YES (1.20.3)

Parallel framework: TBB (ver 2020.2 interface 11102)

Trace: YES (with Intel ITT)

Other third-party libraries:  
VA: NO  
Lapack: NO  
Custom HAL: NO  
Protobuf: build (3.19.1)  
Flatbuffers: builtin/3rdparty (23.1.21)

Python 3:  
Interpreter: /usr/bin/python3 (ver 3.10.6)  
Libraries: /usr/lib/x86\_64-linux-gnu/libpython3.10.so (ver 3.10.6)  
numpy: /usr/local/lib/python3.10/dist-packages/numpy/core/include (ver 1.22.4)  
install path: lib/python3.10/dist-packages/cv2/python-3.10

Python (for build): /usr/bin/python3

Java:  
ant: NO  
JNI: /usr/lib/jvm/java-8-openjdk-amd64/include /usr/lib/jvm/java-8-openjdk-amd64/include/linux /usr/lib/jvm/java-8-openjdk-amd64/include  
Java wrappers: NO  
Java tests: NO

## Install to: /usr/local

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [October 1, 2023, 11:56am UTC](https://forum.opencv.org/t/warn-0-1-416-global-net-impl-cpp-174-setupnet-dnn-module-was-not-built-with-cuda-backend-switching-to-cpu/14707/6 "2023-10-01T11:56:30Z")

</div>

4.8.0 in post #1, 4.7.0-dev above  
you’re not using the version you built with cuda but a previous one
