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
137 stars 47 forks source link

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

Open renatocsanchez opened 3 months ago

renatocsanchez commented 3 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 3 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