Skip to content

Instantly share code, notes, and snippets.

@yzhcat
yzhcat / cuda_info.cpp.patch
Created October 11, 2025 02:00
OpenCV tag4.12.0 with CUDA 13 in Thor
diff --git a/modules/core/src/cuda_info.cpp b/modules/core/src/cuda_info.cpp
index 2558ec8ea5..b7f30a268a 100644
--- a/modules/core/src/cuda_info.cpp
+++ b/modules/core/src/cuda_info.cpp
@@ -423,9 +423,15 @@ int cv::cuda::DeviceInfo::clockRate() const
{
#ifndef HAVE_CUDA
throw_no_cuda();
+#else
+#if CUDART_VERSION >= 13000