CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
void free_host(void *ptr)
void * allocate_host(size_t nbytes, cudaStream_t stream)