HeterogeneousCore
CUDAUtilities
interface
deviceCount.h
Go to the documentation of this file.
1
#ifndef HeterogenousCore_CUDAUtilities_deviceCount_h
2
#define HeterogenousCore_CUDAUtilities_deviceCount_h
3
4
#include "
HeterogeneousCore/CUDAUtilities/interface/cudaCheck.h
"
5
6
#include <cuda_runtime.h>
7
8
namespace
cms
{
9
namespace
cuda
{
10
inline
int
deviceCount
() {
11
int
ndevices;
12
cudaCheck
(cudaGetDeviceCount(&ndevices));
13
return
ndevices;
14
}
15
}
// namespace cuda
16
}
// namespace cms
17
18
#endif
prod1Switch_cff.cuda
cuda
Definition:
prod1Switch_cff.py:11
cms::cuda::deviceCount
int deviceCount()
Definition:
deviceCount.h:10
cudaCheck.h
cudaCheck
#define cudaCheck(ARG,...)
Definition:
cudaCheck.h:62
cms
Namespace of DDCMS conversion namespace.
Definition:
ProducerAnalyzer.cc:21
Generated for CMSSW Reference Manual by
1.8.16