CMS 3D CMS Logo

ROCmInterface.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_ROCmServices_interface_ROCmInterface_h
2 #define HeterogeneousCore_ROCmServices_interface_ROCmInterface_h
3 
4 #include <utility>
5 
6 class ROCmInterface {
7 public:
8  ROCmInterface() = default;
9  virtual ~ROCmInterface() = default;
10 
11  virtual bool enabled() const = 0;
12 
13  virtual int numberOfDevices() const = 0;
14 
15  // Returns the (major, minor) compute capability of the given device.
16  virtual std::pair<int, int> computeCapability(int device) const = 0;
17 };
18 
19 #endif // HeterogeneousCore_ROCmServices_interface_ROCmInterface_h
virtual std::pair< int, int > computeCapability(int device) const =0
virtual ~ROCmInterface()=default
ROCmInterface()=default
virtual int numberOfDevices() const =0
virtual bool enabled() const =0