MappedHostAllocator< T > Struct Template Reference
CUDA host memory allocator similar to
HostAllocator using device mapped memory A Mapped memory is accessible on host and device. However, the pointers are different and this complicated everything. According to CUDA manual, version 4.0 of CUDA SDK uses unified pointers so there in to need to map the pointer. In that case, The pointer obtained using this allocator can be passed to a kernel.
More...
#include <allocators.hpp>
List of all members.
|
Static Public Member Functions |
|
static T * | getDevicePointer (T *hp) |
| | This is a non-conforming method for getting the Device Pointer This method is only needed when dealing with device with compute capabality less than 2.0.
|
Detailed Description
template<class T>
struct MappedHostAllocator< T >
CUDA host memory allocator similar to
HostAllocator using device mapped memory A Mapped memory is accessible on host and device. However, the pointers are different and this complicated everything. According to CUDA manual, version 4.0 of CUDA SDK uses unified pointers so there in to need to map the pointer. In that case, The pointer obtained using this allocator can be passed to a kernel.
Definition at line 129 of file allocators.hpp.
The documentation for this struct was generated from the following file: