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

pull/13383/head
Alexey Spizhevoy 14 years ago
parent 0821c7ad17
commit 5d4913a2ee
  1. 5
      modules/gpu/include/opencv2/gpu/gpu.hpp
  2. 1
      modules/gpu/src/multi_gpu_mgr.cpp
  3. 0
      samples/gpu/driver_api_multi.cpp
  4. 0
      samples/gpu/driver_api_stereo_multi.cpp

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

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

Loading…
Cancel
Save