src
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
cms::cuda
Definition:
Product.h:14
numberOfDevices.h
callgraph.cs
cs
Definition:
callgraph.py:102
Service.h
CUDAService.h
cms::cuda::numberOfDevices
int numberOfDevices()
Definition:
numberOfDevices.cc:6
Generated for CMSSW Reference Manual by
1.8.14