Go to the documentation of this file.
   10 #ifndef vtk_m_cont_RuntimeDeviceTracker_h 
   11 #define vtk_m_cont_RuntimeDeviceTracker_h 
   13 #include <vtkm/cont/vtkm_cont_export.h> 
   30 struct RuntimeDeviceTrackerInternals;
 
   32 struct ScopedRuntimeDeviceTracker;
 
   66     this->SetDeviceState(deviceId, 
false);
 
   74     this->SetDeviceState(deviceId, 
false);
 
  117   VTKM_CONT bool GetThreadFriendlyMemAlloc() 
const;
 
  118   VTKM_CONT void SetThreadFriendlyMemAlloc(
bool state);
 
  133   VTKM_CONT void SetAbortChecker(
const std::function<
bool()>& func);
 
  137   VTKM_CONT bool CheckForAbortRequest() 
const;
 
  139   VTKM_CONT void PrintSummary(std::ostream& out) 
const;
 
  162   void LogEnabledDevices() 
const;
 
  227     const std::function<
bool()>& abortChecker,
 
  234   std::unique_ptr<detail::RuntimeDeviceTrackerInternals> 
SavedState;
 
  240 #endif //vtk_m_cont_RuntimeDeviceTracker_h 
  
Groups connected points that have the same field value.
Definition: Atomic.h:19
 
VTKM_CONT void ReportBadDeviceFailure(vtkm::cont::DeviceAdapterId deviceId, const vtkm::cont::ErrorBadDevice &)
Report a ErrorBadDevice failure and flag the device as unusable.
Definition: RuntimeDeviceTracker.h:71
 
detail::RuntimeDeviceTrackerInternals * Internals
Definition: RuntimeDeviceTracker.h:144
 
#define VTKM_CONT
Definition: ExportMacros.h:57
 
Definition: RuntimeDeviceTracker.h:190
 
RuntimeDeviceTracker is the central location for determining which device adapter will be active for ...
Definition: RuntimeDeviceTracker.h:47
 
std::unique_ptr< detail::RuntimeDeviceTrackerInternals > SavedState
Construct a ScopedRuntimeDeviceTracker associated with the thread, associated with the provided track...
Definition: RuntimeDeviceTracker.h:234
 
Definition: DeviceAdapterTag.h:52
 
This class is thrown when VTK-m attempts to manipulate memory that it should not.
Definition: ErrorBadAllocation.h:25
 
VTKM_CONT void ReportAllocationFailure(vtkm::cont::DeviceAdapterId deviceId, const vtkm::cont::ErrorBadAllocation &)
Report a failure to allocate memory on a device, this will flag the device as being unusable for all ...
Definition: RuntimeDeviceTracker.h:63
 
VTKM_CONT_EXPORT VTKM_CONT vtkm::cont::RuntimeDeviceTracker & GetRuntimeDeviceTracker()
Get the RuntimeDeviceTracker for the current thread.
 
This class is thrown when VTK-m performs an operation that is not supported on the current device.
Definition: ErrorBadDevice.h:29
 
RuntimeDeviceTrackerMode
Definition: RuntimeDeviceTracker.h:178