From 4b8425dbb8c7f72d250be6bdd25f226e830a7ec2 Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Wed, 19 Jan 2011 13:28:22 +0000 Subject: [PATCH] fixed minor bugs --- modules/gpu/src/initialization.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gpu/src/initialization.cpp b/modules/gpu/src/initialization.cpp index 4831fc1e1..3b500ec02 100644 --- a/modules/gpu/src/initialization.cpp +++ b/modules/gpu/src/initialization.cpp @@ -60,6 +60,7 @@ CV_EXPORTS bool cv::gpu::hasAtomicsSupport(int /*device*/) { throw_nogpu(); retu CV_EXPORTS bool cv::gpu::ptxVersionIs(int major, int minor) { throw_nogpu(); return false; } CV_EXPORTS bool cv::gpu::ptxVersionIsLessOrEqual(int major, int minor) { throw_nogpu(); return false; } CV_EXPORTS bool cv::gpu::ptxVersionIsGreaterOrEqual(int major, int minor) { throw_nogpu(); return false; } +CV_EXPORTS bool cv::gpu::isCompatibleWith(int device) { throw_nogpu(); return false; } #else /* !defined (HAVE_CUDA) */ @@ -207,7 +208,7 @@ CV_EXPORTS bool cv::gpu::ptxVersionIsGreaterOrEqual(int major, int minor) } -CV_EXPORTS bool isCompatibleWith(int device) +CV_EXPORTS bool cv::gpu::isCompatibleWith(int device) { // According to the CUDA C Programming Guide Version 3.2: "PTX code // produced for some specific compute capability can always be compiled to