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