added init() function into MultiGpuMgr, added samples

This commit is contained in:
Alexey Spizhevoy
2011-02-15 10:03:26 +00:00
parent 5d4913a2ee
commit 725d83b0e5
5 changed files with 274 additions and 8 deletions

View File

@@ -131,15 +131,16 @@ namespace cv
/////////////////////////// Multi GPU Manager //////////////////////////////
// Provides functionality for working with many GPUs. Object of this
// class must be created before any OpenCV GPU call and no call must
// be done after its destruction.
// Provides functionality for working with many GPUs
class CV_EXPORTS MultiGpuMgr
{
public:
MultiGpuMgr();
~MultiGpuMgr();
// Must be called before any other GPU calls
void init();
// Makes the given GPU active
void gpuOn(int gpu_id);