Could not build OpenCV 4.x WITH_CUDA=ON(CUDA 12.0) #23034
Labels
bug
category: build/install
category: gpu/cuda (contrib)
OpenCV 4.0+: moved to opencv_contrib
priority: high
Milestone
System Information
OpenCV version: 4.x bc8c912
OpenCV contrib version: af3a467adcd4b8cfe2d4084a891c116eecce3b5a
Operating System / Platform: Ubuntu 22.04
Compiler & compiler version: GCC 11.3.0
CUDA version: 12.0
Detailed description
I tried to build opencv( bc8c912c7a01ebedf181d4dd3a1b6e57327f4401 ) and opencv_contrib( af3a467adcd4b8cfe2d4084a891c116eecce3b5a ) with
WITH_CUDA=ON
.But, I could not build OpenCV.
details log
NVIDIA says the following comment.
https://forums.developer.nvidia.com/t/cuda-12-0-still-support-for-texture-reference-support-for-pascal-architecture-warp-synchronous-programming/237284
But,
opencv2/core/cuda/common.hpp
usestextureReference
.opencv/modules/core/include/opencv2/core/cuda/common.hpp
Lines 101 to 104 in bc8c912
related PR
Steps to reproduce
I used nvidia/cuda:12.0.0-devel-ubuntu22.04 docker image.
Issue submission checklist
The text was updated successfully, but these errors were encountered: