Swarm-NG  1.1
HostAllocator< T > Struct Template Reference

CUDA host memory allocator uses cudaMallocHost,cudaMemcpy,cudaFreeHost Host memory allocator is similar to malloc. The pointers point to memory that can be used by C++. However, CUDA documentation claims that copying to device memory from a CUDA allocated host array is faster than memory allocated using malloc. More...

#include <allocators.hpp>

Inheritance diagram for HostAllocator< T >:
MappedHostAllocator< T >

Detailed Description

template<class T>
struct HostAllocator< T >

CUDA host memory allocator uses cudaMallocHost,cudaMemcpy,cudaFreeHost Host memory allocator is similar to malloc. The pointers point to memory that can be used by C++. However, CUDA documentation claims that copying to device memory from a CUDA allocated host array is faster than memory allocated using malloc.

Definition at line 102 of file allocators.hpp.


The documentation for this struct was generated from the following file: