CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
requireDevices.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_CUDAUtilities_requireDevices_h
2 #define HeterogeneousCore_CUDAUtilities_requireDevices_h
3 
7 namespace cms {
8  namespace cudatest {
10  bool testDevices();
11 
13  void requireDevices();
14  } // namespace cudatest
15 } // namespace cms
16 
17 #endif // HeterogeneousCore_CUDAUtilities_requireDevices_h
bool testDevices()
In presence of CUDA devices, return true; otherwise print message and return false.
void requireDevices()
Print message and exit if there are no CUDA devices.