HeterogeneousCore
CUDAServices
src
numberOfDevices.cc
Go to the documentation of this file.
1
#include "
HeterogeneousCore/CUDAServices/interface/numberOfDevices.h
"
2
#include "
HeterogeneousCore/CUDAServices/interface/CUDAService.h
"
3
#include "
FWCore/ServiceRegistry/interface/Service.h
"
4
5
namespace
cms::cuda
{
6
int
numberOfDevices
() {
7
edm::Service<CUDAService>
cs
;
8
return
cs
->enabled() ?
cs
->numberOfDevices() : 0;
9
}
10
}
// namespace cms::cuda
cms::cuda
Definition:
Product.h:14
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition:
fastjetfortran_madfks.cc:47
numberOfDevices.h
cms::cuda::numberOfDevices
int numberOfDevices()
Definition:
numberOfDevices.cc:6
Service.h
edm::Service
Definition:
Service.h:30
CUDAService.h
Generated for CMSSW Reference Manual by
1.8.16