VTK  9.7.20261109
vtkmDeviceSelection.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
24
25#ifndef vtkmDeviceSelection_h
26#define vtkmDeviceSelection_h
27
28#include "vtkAcceleratorsVTKmCoreModule.h" // For export macro
29#include "vtkObject.h"
30
31VTK_ABI_NAMESPACE_BEGIN
32
33class VTKACCELERATORSVTKMCORE_EXPORT vtkmDeviceSelection : public vtkObject
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44 static bool ForceDevice(const char* name);
45
50 static bool DisableDevice(const char* name);
51
57 static bool EnableDevice(const char* name);
58
64 static void Reset();
65
72 static const char* GetAvailableDevices();
73
74protected:
77
78private:
80 void operator=(const vtkmDeviceSelection&) = delete;
81};
82
83VTK_ABI_NAMESPACE_END
84#endif // vtkmDeviceSelection_h
a simple class to control print indentation
Definition vtkIndent.h:108
static void Reset()
Make every device this build and machine can run available again.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static const char * GetAvailableDevices()
The devices filters can currently run on, separated by spaces.
static bool DisableDevice(const char *name)
Stop running on name; other devices are unaffected.
static vtkmDeviceSelection * New()
static bool ForceDevice(const char *name)
Run on name only, disabling every other device.
static bool EnableDevice(const char *name)
Undo ForceDevice() or DisableDevice() for name, making it available again.
~vtkmDeviceSelection() override