updated code in case of the compilation without CUDA
authorAlexey Spizhevoy <no@email>
Fri, 28 Jan 2011 12:30:08 +0000 (12:30 +0000)
committerAlexey Spizhevoy <no@email>
Fri, 28 Jan 2011 12:30:08 +0000 (12:30 +0000)
modules/gpu/src/initialization.cpp

index b3e3ba036e48265d91d553ffb2ba4dffc65c7528..9f2cc5d69d95e9784c02759fbb499cf5384a121b 100644 (file)
@@ -130,18 +130,12 @@ CV_EXPORTS bool cv::gpu::TargetArchs::hasEqualOrGreaterBin(int major, int minor)
 CV_EXPORTS int cv::gpu::getCudaEnabledDeviceCount() { return 0; }\r
 CV_EXPORTS void cv::gpu::setDevice(int) { throw_nogpu(); } \r
 CV_EXPORTS int cv::gpu::getDevice() { throw_nogpu(); return 0; } \r
-cv::gpu::DeviceInfo::DeviceInfo() { throw_nogpu(); }\r
-cv::gpu::DeviceInfo::DeviceInfo(int) { throw_nogpu(); }\r
-string cv::gpu::DeviceInfo::name() const { throw_nogpu(); return ""; }\r
-int cv::gpu::DeviceInfo::major() const { throw_nogpu(); return 0; }\r
-int cv::gpu::DeviceInfo::minor() const { throw_nogpu(); return 0; }\r
-int cv::gpu::DeviceInfo::multiProcessorCount() const { throw_nogpu(); return 0; }\r
 size_t cv::gpu::DeviceInfo::freeMemory() const { throw_nogpu(); return 0; }\r
 size_t cv::gpu::DeviceInfo::totalMemory() const { throw_nogpu(); return 0; }\r
 bool cv::gpu::DeviceInfo::has(cv::gpu::GpuFeature) const { throw_nogpu(); return false; }\r
 bool cv::gpu::DeviceInfo::isCompatible() const { throw_nogpu(); return false; }\r
-void cv::gpu::DeviceInfo::query() const { throw_nogpu(); }\r
-void cv::gpu::DeviceInfo::queryMemory(size_t, size_t) const { throw_nogpu(); }\r
+void cv::gpu::DeviceInfo::query() { throw_nogpu(); }\r
+void cv::gpu::DeviceInfo::queryMemory(size_t&, size_t&) const { throw_nogpu(); }\r
 \r
 #else /* !defined (HAVE_CUDA) */\r
 \r