Viskores  1.0
RuntimeDeviceInformation.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_RuntimeDeviceInformation_h
19 #define viskores_cont_RuntimeDeviceInformation_h
20 
25 
26 namespace viskores
27 {
28 namespace cont
29 {
30 
37 class VISKORES_CONT_EXPORT RuntimeDeviceInformation
38 {
39 public:
44  DeviceAdapterNameType GetName(DeviceAdapterId id) const;
45 
49  DeviceAdapterId GetId(DeviceAdapterNameType name) const;
50 
55  bool Exists(DeviceAdapterId id) const;
56 
64  viskores::cont::internal::DeviceAdapterMemoryManagerBase& GetMemoryManager(
65  DeviceAdapterId id) const;
66 
86  viskores::cont::internal::RuntimeDeviceConfigurationBase& GetRuntimeConfiguration(
87  DeviceAdapterId id,
88  const viskores::cont::internal::RuntimeDeviceConfigurationOptions& configOptions,
89  int& argc,
90  char* argv[] = nullptr) const;
91 
93  viskores::cont::internal::RuntimeDeviceConfigurationBase& GetRuntimeConfiguration(
94  DeviceAdapterId id,
95  const viskores::cont::internal::RuntimeDeviceConfigurationOptions& configOptions) const;
96 
98  viskores::cont::internal::RuntimeDeviceConfigurationBase& GetRuntimeConfiguration(
99  DeviceAdapterId id) const;
100 };
101 } // namespace viskores::cont
102 } // namespace viskores
103 
104 #endif //viskores_cont_RuntimeDeviceInformation_h
viskores::cont::RuntimeDeviceInformation
A class that can be used to determine if a given device adapter is supported on the current machine a...
Definition: RuntimeDeviceInformation.h:37
DeviceAdapterTag.h
DeviceAdapterMemoryManager.h
ExportMacros.h
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
RuntimeDeviceConfiguration.h
viskores::cont::DeviceAdapterId
An object used to specify a device.
Definition: DeviceAdapterTag.h:66
viskores::cont::DeviceAdapterNameType
std::string DeviceAdapterNameType
Definition: DeviceAdapterTag.h:58