VTK-m  2.0
Public Member Functions | Private Attributes | List of all members
vtkm::cont::DeviceAdapterRuntimeDetector< vtkm::cont::DeviceAdapterTagCuda > Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DeviceAdapterRuntimeDetector()

Member Function Documentation

◆ Exists()

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 ).

Member Data Documentation

◆ HighestArchSupported

vtkm::Int32 vtkm::cont::DeviceAdapterRuntimeDetector< vtkm::cont::DeviceAdapterTagCuda >::HighestArchSupported
private

◆ NumberOfDevices

vtkm::Int32 vtkm::cont::DeviceAdapterRuntimeDetector< vtkm::cont::DeviceAdapterTagCuda >::NumberOfDevices
private

The documentation for this class was generated from the following file: