VTK-m
2.0
|
Class providing a CUDA runtime support detector. More...
#include <DeviceAdapterRuntimeDetectorCuda.h>
Public Member Functions | |
VTKM_CONT | DeviceAdapterRuntimeDetector () |
VTKM_CONT bool | Exists () const |
Returns true if the given device adapter is supported on the current machine. More... | |
Private Attributes | |
vtkm::Int32 | NumberOfDevices |
vtkm::Int32 | HighestArchSupported |
Class providing a CUDA runtime support detector.
The class provide the actual implementation used by vtkm::cont::RuntimeDeviceInformation for the CUDA backend.
We will verify at runtime that the machine has at least one CUDA capable device, and said device is from the 'fermi' (SM_20) generation or newer.
VTKM_CONT vtkm::cont::DeviceAdapterRuntimeDetector< vtkm::cont::DeviceAdapterTagCuda >::DeviceAdapterRuntimeDetector | ( | ) |
VTKM_CONT bool vtkm::cont::DeviceAdapterRuntimeDetector< vtkm::cont::DeviceAdapterTagCuda >::Exists | ( | ) | const |
Returns true if the given device adapter is supported on the current machine.
Only returns true if we have at-least one CUDA capable device of SM_20 or greater ( fermi ).
|
private |
|
private |