CMS 3D CMS Logo

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