Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
edm::Service
Definition:
Service.h:30
ecalDigis_cff.cuda
tuple cuda
Definition:
ecalDigis_cff.py:35
fwrapper::cs
unique_ptr< ClusterSequence > cs
Definition:
fastjetfortran_madfks.cc:47
CUDAService::numberOfDevices
int numberOfDevices() const
Definition:
CUDAService.h:24
numberOfDevices.h
CUDAService::enabled
bool enabled() const
Definition:
CUDAService.h:22
Service.h
CUDAService.h
cms::cuda::numberOfDevices
int numberOfDevices()
Definition:
numberOfDevices.cc:6
Generated for CMSSW Reference Manual by
1.8.5