Qengineering / Install-OpenCV-Jetson-Nano

OpenCV installation script with CUDA and cuDNN support
https://qengineering.eu/install-opencv-on-jetson-nano.html
BSD 3-Clause "New" or "Revised" License
149 stars 50 forks source link

global net_impl.cpp:178 setUpNet DNN module was not built with CUDA #23

Open renatocsanchez opened 7 months ago

renatocsanchez commented 7 months ago

on Jetson Nano 4gb After running the script (without errors), it still reports 'no CUDA:

[ WARN:0@9.371] global net_impl.cpp:178 setUpNet DNN module was not built with CUDA backend; switching to CPU

Qengineering commented 7 months ago

Your issue seems to originate from a too low CUDA architectural number (arch).

Before diving into the OpenCV code to see if there is a fix possible, would you be so kind to reinstall OpenCV without the -D CUDA_ARCH_BIN=${ARCH} \ -D CUDA_ARCH_PTX=${PTX} \ lines in the script. Now, it will use arch without (in our case) a limiting number.

see also: https://github.com/opencv/opencv/issues/15858