Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported gpu architecture 'compute_87' #74

Open
drvrh opened this issue Apr 20, 2023 · 1 comment
Open

Unsupported gpu architecture 'compute_87' #74

drvrh opened this issue Apr 20, 2023 · 1 comment

Comments

@drvrh
Copy link

drvrh commented Apr 20, 2023

Hello,
I ran command $./build_opencv.sh on my Jetson Nano, but I get error:

[ 28%] 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:2792: 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

What's wrong?

@chunyianliew
Copy link

chunyianliew commented Apr 30, 2023

The latest Linux version supporting the Jetson Nano is Jetson Linux 32.7.3: https://developer.nvidia.com/embedded/jetson-linux-archive

The nvcc version included up to Jetson Linux 32.7.3 does not support the Nvidia Ampere GPU Architecture for Orin (compute_87): https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#virtual-architecture-feature-list

The Jetson Nano is based on the Maxwell Architecture (CUDA Architecture Version 5.3)

You can resolve this issue by changing line 110 in build_opencv.sh
From
-D CUDA_ARCH_BIN=5.3,6.2,7.2,8.7
To
-D CUDA_ARCH_BIN=5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants