From 8f19363c071e01af5bf771cd55dca3210689db80 Mon Sep 17 00:00:00 2001 From: jveitchmichaelis Date: Fri, 7 Apr 2017 14:30:14 +0100 Subject: [PATCH] Update documentation for getCudaEnabledDeviceCount Inform users that getCudaEnabledDeviceCount can return -1 in some cases. --- modules/core/include/opencv2/core/cuda.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/cuda.hpp b/modules/core/include/opencv2/core/cuda.hpp index 8856520c1a..6dca272366 100644 --- a/modules/core/include/opencv2/core/cuda.hpp +++ b/modules/core/include/opencv2/core/cuda.hpp @@ -595,7 +595,8 @@ private: /** @brief Returns the number of installed CUDA-enabled devices. Use this function before any other CUDA functions calls. If OpenCV is compiled without CUDA support, -this function returns 0. +this function returns 0. If the CUDA driver is not installed, or is incompatible, this function +returns -1. */ CV_EXPORTS int getCudaEnabledDeviceCount();