Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:44

0001 #ifndef HeterogeneousCore_CUDAUtilities_allocate_host_h
0002 #define HeterogeneousCore_CUDAUtilities_allocate_host_h
0003 
0004 #include <cuda_runtime.h>
0005 
0006 namespace cms {
0007   namespace cuda {
0008     // Allocate pinned host memory (to be called from unique_ptr)
0009     void *allocate_host(size_t nbytes, cudaStream_t stream);
0010 
0011     // Free pinned host memory (to be called from unique_ptr)
0012     void free_host(void *ptr);
0013   }  // namespace cuda
0014 }  // namespace cms
0015 
0016 #endif