CMS 3D CMS Logo

allocate_device.h
Go to the documentation of this file.
1 #ifndef HeterogeneousCore_CUDAUtilities_allocate_device_h
2 #define HeterogeneousCore_CUDAUtilities_allocate_device_h
3 
4 #include <cuda_runtime.h>
5 
6 namespace cms {
7  namespace cuda {
8  // Allocate device memory
9  void *allocate_device(int dev, size_t nbytes, cudaStream_t stream);
10 
11  // Free device memory (to be called from unique_ptr)
12  void free_device(int device, void *ptr);
13  } // namespace cuda
14 } // namespace cms
15 
16 #endif
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
cms::cuda::free_device
void free_device(int device, void *ptr)
Definition: allocate_device.cc:31
ecalDigis_cff.cuda
cuda
Definition: ecalDigis_cff.py:35
cms::cuda::allocate_device
void * allocate_device(int dev, size_t nbytes, cudaStream_t stream)
Definition: allocate_device.cc:16
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21