VTK-m  2.2
ErrorBadDevice.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_ErrorBadDevice_h
11 #define vtk_m_cont_ErrorBadDevice_h
12 
13 #include <vtkm/cont/Error.h>
14 
17 
18 namespace vtkm
19 {
20 namespace cont
21 {
22 
23 
25 
30 {
31 public:
32  ErrorBadDevice(const std::string& message)
33  : Error(message)
34  {
35  }
36 };
37 
39 
45 //
46 VTKM_CONT_EXPORT void throwFailedRuntimeDeviceTransfer(const std::string& className,
48 }
49 } // namespace vtkm::cont
50 
51 #endif // vtk_m_cont_ErrorBadDevice_h
VTKM_SILENCE_WEAK_VTABLE_WARNING_START
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_START
Definition: ExportMacros.h:119
vtkm::cont::throwFailedRuntimeDeviceTransfer
void throwFailedRuntimeDeviceTransfer(const std::string &className, vtkm::cont::DeviceAdapterId device)
Throws an ErrorBadeDevice exception with the following message: "VTK-m was unable to transfer classNa...
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
VTKM_SILENCE_WEAK_VTABLE_WARNING_END
#define VTKM_SILENCE_WEAK_VTABLE_WARNING_END
Definition: ExportMacros.h:120
DeviceAdapterTag.h
vtkm::cont::Error
The superclass of all exceptions thrown by any VTKm function or method.
Definition: Error.h:33
Error.h
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
vtkm::cont::ErrorBadDevice::ErrorBadDevice
ErrorBadDevice(const std::string &message)
Definition: ErrorBadDevice.h:32
vtkm_cont_export.h
vtkm::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:58
VTKM_ALWAYS_EXPORT
#define VTKM_ALWAYS_EXPORT
Definition: ExportMacros.h:89
vtkm::cont::ErrorBadDevice
This class is thrown when VTK-m performs an operation that is not supported on the current device.
Definition: ErrorBadDevice.h:29