Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef HeterogeneousCore_ROCmUtilities_interface_requireDevices_h
0002 #define HeterogeneousCore_ROCmUtilities_interface_requireDevices_h
0003 
0004 /**
0005  * These functions are meant to be called only from unit tests.
0006  */
0007 namespace cms {
0008   namespace rocmtest {
0009 
0010     /// In presence of ROCm devices, return true; otherwise print message and return false
0011     bool testDevices();
0012 
0013     /// Print message and exit if there are no ROCm devices
0014     void requireDevices();
0015 
0016   }  // namespace rocmtest
0017 }  // namespace cms
0018 
0019 #endif  // HeterogeneousCore_ROCmUtilities_interface_requireDevices_h