nvcc doesn’t care for the GPU in the system. If you are running with the nvcc from CUDA 11.2, you shouldn’t get an error message Unsupported gpu architecture ‘compute_86’ when compiling. I would suggest:
(1) Show the output of nvcc --version
(2) Show the complete nvcc invocation that gave rise to the error message.
Tengo el mismo error al intentar instalar OpenCV con CUDA en Python en Jetson Nano P3450 de 4gb
git clone GitHub - mdegans/nano_build_opencv: Build OpenCV on Nvidia Jetson Nano
cd nano_build_opencv
clear
cd nano_build_opencv
jtop
gedit build_opencv.sh
git diff
./build_opencv.sh 4.8.0
jetson-nano-jose@jetson-Jose:~/nano_build_opencv$ ./build_opencv.sh 4.8.0
…
[ 21%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o
nvcc fatal : Unsupported gpu architecture ‘compute_87’
CMake Error at cuda_compile_1_generated_gpu_mat.cu.o.RELEASE.cmake:221 (message):
Error generating
/tmp/build_opencv/opencv/build/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o
modules/core/CMakeFiles/opencv_core.dir/build.make:63: recipe for target ‘modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o’ failed
make[2]: *** [modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/cuda_compile_1_generated_gpu_mat.cu.o] Error 1
CMakeFiles/Makefile2:2607: recipe for target ‘modules/core/CMakeFiles/opencv_core.dir/all’ failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:162: recipe for target ‘all’ failed
make: *** [all] Error 2
Do you wish to remove temporary build files in /tmp/build_opencv ?
(Doing so may make running tests on the build later impossible)
Y/N