@ -194,82 +194,3 @@ There is a set of methods to check whether the module contains intermediate (PTX
According to the CUDA C Programming Guide Version 3.2: "PTX code produced for some specific compute capability can always be compiled to binary code of greater or equal compute capability".
.. index :: gpu::MultiGpuManager
gpu::MultiGpuManager
--------------------
.. cpp:class :: gpu::MultiGpuManager
This class provides functionality for working with many GPUs. ::
class MultiGpuManager
{
public:
MultiGpuManager();
~MultiGpuManager();
// Must be called before any other GPU calls
void init();
// Makes the given GPU active
void gpuOn(int gpu_id);
// Finishes the piece of work on the current GPU
void gpuOff();
static const int BAD_GPU_ID;
};
.. index :: gpu::MultiGpuManager::MultiGpuManager
gpu::MultiGpuManager::MultiGpuManager
----------------------------------------
.. cpp:function :: gpu::MultiGpuManager::MultiGpuManager()
Creates a multi-GPU manager but does not initialize it.
.. index :: gpu::MultiGpuManager::~MultiGpuManager
gpu::MultiGpuManager::~MultiGpuManager
----------------------------------------
.. cpp:function :: gpu::MultiGpuManager::~MultiGpuManager()
Releases a multi-GPU manager.
.. index :: gpu::MultiGpuManager::init
gpu::MultiGpuManager::init
----------------------------------------
.. cpp:function :: void gpu::MultiGpuManager::init()
Initializes a multi-GPU manager.
.. index :: gpu::MultiGpuManager::gpuOn
gpu::MultiGpuManager::gpuOn
----------------------------------------
.. cpp:function :: void gpu::MultiGpuManager::gpuOn(int gpu_id)
Activates the given GPU.
:param gpu_id: System index of the GPU device starting with 0.
.. index :: gpu::MultiGpuManager::gpuOff
gpu::MultiGpuManager::gpuOff
----------------------------------------
.. cpp:function :: void gpu::MultiGpuManager::gpuOff()
Finishes a piece of work on the current GPU.