-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
CUDA: detection of CUDA on Jetson TX1 and TX2 fail #17598
Copy link
Copy link
Closed
Labels
category: build/installcategory: gpu/cuda (contrib)OpenCV 4.0+: moved to opencv_contribOpenCV 4.0+: moved to opencv_contrib
Milestone
Description
System information (version)
- OpenCV => master ( 5ed6546 ) + contrib master ( 0f56e6d )
- Operating System / Platform => Jetson TX1/TX2 (Ubuntu)
- Compiler => GCC5.4.0
Detailed description
- cmake
-- General configuration for OpenCV 4.4.0-pre =====================================
-- Version control: 4.3.0-464-g5ed6546
--
-- Extra modules:
-- Location (extra): /opencv_contrib/modules
-- Version control (extra): 4.3.0-69-g0f56e6d
:
-- CUDA detected: 8.0
-- Automatic detection of CUDA generation failed. Going to build for all known architectures.
-- CUDA NVCC target flags: -ccbin;/usr/bin/cc;-gencode;arch=compute_53,code=sm_53;-gencode;arch=compute_62,code=sm_62;-gencode;arch=compute_72,code=sm_72;-D_FORCE_INLINES
The "Automatic detection" usually successes, but it fails, after #17526
Also, sm72 is added, but TX1 and TX2 has CUDA 8.0, which doesn't know anything about sm72.
As a result, it fails compiling
nvcc fatal : Unsupported gpu architecture 'compute_72'
CMake Error at cuda_compile_1_generated_gpu_mat.cu.o.Release.cmake:219 (message):
Error generating
/opencv/build/modules/core/CMakeFiles/cuda_compile_1.dir/src/cuda/./cuda_compile_1_generated_gpu_mat.cu.o
I'm not sure why the automatic detection fails, but wiping out the non-supported CC should let workaround this issue.
Steps to reproduce
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues,
answers.opencv.org, Stack Overflow, etc and have not found solution - I updated to latest OpenCV version and the issue is still there
- There is reproducer code and related data files: videos, images, onnx, etc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category: build/installcategory: gpu/cuda (contrib)OpenCV 4.0+: moved to opencv_contribOpenCV 4.0+: moved to opencv_contrib