fixed multi GPU API, added driver_api prefix to multi gpu samples

This commit is contained in:
Alexey Spizhevoy 2011-02-15 09:12:48 +00:00
parent 0821c7ad17
commit 5d4913a2ee
4 changed files with 5 additions and 1 deletions

View File

@ -138,6 +138,7 @@ namespace cv
{ {
public: public:
MultiGpuMgr(); MultiGpuMgr();
~MultiGpuMgr();
// Makes the given GPU active // Makes the given GPU active
void gpuOn(int gpu_id); void gpuOn(int gpu_id);
@ -148,8 +149,10 @@ namespace cv
static const int BAD_GPU_ID = -1; static const int BAD_GPU_ID = -1;
private: private:
class Impl; void operator=(const MultiGpuMgr&);
MultiGpuMgr(const MultiGpuMgr&);
class Impl;
Ptr<Impl> impl_; Ptr<Impl> impl_;
}; };

View File

@ -117,6 +117,7 @@ MultiGpuMgr::Impl::Impl(): num_devices_(0)
MultiGpuMgr::MultiGpuMgr(): impl_(new Impl()) {} MultiGpuMgr::MultiGpuMgr(): impl_(new Impl()) {}
MultiGpuMgr::~MultiGpuMgr() {}
void MultiGpuMgr::gpuOn(int gpu_id) void MultiGpuMgr::gpuOn(int gpu_id)