ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
#include <cstddef>
#include <type_traits>
#include <vector>
Go to the source code of this file.
Classes | |
struct | CudaHostAllocator< T > |
Allocator that uses CUDA to allocate CPU memory. More... | |
Typedefs | |
template<class T > | |
using | pinned_vector = std::vector< T, CudaHostAllocator< T > > |
Functions | |
void | cuda_malloc_host (void **p, std::size_t n) |
void | cuda_free_host (void *p) |
using pinned_vector = std::vector<T, CudaHostAllocator<T> > |
Definition at line 64 of file CudaHostAllocator.hpp.
void cuda_free_host | ( | void * | p | ) |
Definition at line 32 of file CudaHostAllocator.cu.
Referenced by CudaHostAllocator< T >::deallocate().
void cuda_malloc_host | ( | void ** | p, |
std::size_t | n | ||
) |
Definition at line 24 of file CudaHostAllocator.cu.
Referenced by CudaHostAllocator< T >::allocate().