ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
CudaHostAllocator.hpp File Reference
#include <cstddef>
#include <type_traits>
#include <vector>
+ Include dependency graph for CudaHostAllocator.hpp:
+ This graph shows which files directly or indirectly include this file:

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)
 

Typedef Documentation

◆ pinned_vector

template<class T >
using pinned_vector = std::vector<T, CudaHostAllocator<T> >

Definition at line 64 of file CudaHostAllocator.hpp.

Function Documentation

◆ cuda_free_host()

void cuda_free_host ( void *  p)

Definition at line 32 of file CudaHostAllocator.cu.

Referenced by CudaHostAllocator< T >::deallocate().

◆ cuda_malloc_host()

void cuda_malloc_host ( void **  p,
std::size_t  n 
)

Definition at line 24 of file CudaHostAllocator.cu.

Referenced by CudaHostAllocator< T >::allocate().