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
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void free_device(int device, void *ptr)
Namespace of DDCMS conversion namespace.
void * allocate_device(int dev, size_t nbytes, cudaStream_t stream)