meanShiftFiltering added (by masha)

get free memory function
This commit is contained in:
Anatoly Baksheev
2010-08-06 17:02:06 +00:00
parent 37f47c9fa3
commit 9ee159462d
5 changed files with 253 additions and 124 deletions

View File

@@ -54,6 +54,7 @@ CV_EXPORTS void cv::gpu::setDevice(int /*device*/) { throw_nogpu(); }
CV_EXPORTS int cv::gpu::getDevice() { throw_nogpu(); return 0; }
CV_EXPORTS void cv::gpu::getComputeCapability(int /*device*/, int* /*major*/, int* /*minor*/) { throw_nogpu(); }
CV_EXPORTS int cv::gpu::getNumberOfSMs(int /*device*/) { throw_nogpu(); return 0; }
CV_EXPORTS void cv::gpu::getGpuMemInfo(size_t* /*free*/, size_t* /*total*/) { throw_nogpu(); }
#else /* !defined (HAVE_CUDA) */
@@ -99,5 +100,11 @@ CV_EXPORTS int cv::gpu::getNumberOfSMs(int device)
return prop.multiProcessorCount;
}
CV_EXPORTS void cv::gpu::getGpuMemInfo(size_t *free, size_t* total)
{
cudaSafeCall( cudaMemGetInfo( free, total ) );
}
#endif