HeterogeneousCore
CUDAUtilities
interface
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
prod1Switch_cff.cuda
cuda
Definition:
prod1Switch_cff.py:11
cms::cuda::free_device
void free_device(int device, void *ptr)
Definition:
allocate_device.cc:31
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
Generated for CMSSW Reference Manual by
1.8.16