Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:46

0001 #ifndef HeterogeneousCore_ROCmServices_interface_ROCmInterface_h
0002 #define HeterogeneousCore_ROCmServices_interface_ROCmInterface_h
0003 
0004 #include <utility>
0005 
0006 class ROCmInterface {
0007 public:
0008   ROCmInterface() = default;
0009   virtual ~ROCmInterface() = default;
0010 
0011   virtual bool enabled() const = 0;
0012 
0013   virtual int numberOfDevices() const = 0;
0014 
0015   // Returns the (major, minor) compute capability of the given device.
0016   virtual std::pair<int, int> computeCapability(int device) const = 0;
0017 };
0018 
0019 #endif  // HeterogeneousCore_ROCmServices_interface_ROCmInterface_h