CMS 3D CMS Logo

currentDevice.h
Go to the documentation of this file.
1 #ifndef HeterogenousCore_CUDAUtilities_currentDevice_h
2 #define HeterogenousCore_CUDAUtilities_currentDevice_h
3 
5 
6 #include <cuda_runtime.h>
7 
8 namespace cms {
9  namespace cuda {
10  inline int currentDevice() {
11  int dev;
12  cudaCheck(cudaGetDevice(&dev));
13  return dev;
14  }
15  } // namespace cuda
16 } // namespace cms
17 
18 #endif
SiPixelRawToDigi_cfi.cuda
cuda
Definition: SiPixelRawToDigi_cfi.py:14
cms::cuda::currentDevice
int currentDevice()
Definition: currentDevice.h:10
cudaCheck.h
cudaCheck
#define cudaCheck(ARG,...)
Definition: cudaCheck.h:62
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21