Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "HeterogeneousCore/CUDAServices/interface/numberOfDevices.h"
0002 #include "HeterogeneousCore/CUDAServices/interface/CUDAService.h"
0003 #include "FWCore/ServiceRegistry/interface/Service.h"
0004 
0005 namespace cms::cuda {
0006   int numberOfDevices() {
0007     edm::Service<CUDAService> cs;
0008     return cs->enabled() ? cs->numberOfDevices() : 0;
0009   }
0010 }  // namespace cms::cuda