Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:26

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