Swarm-NG  1.1
DeviceAllocator< T > Struct Template Reference

CUDA device memory allocator that uses cudaMalloc,cudaMemcpy,cudaFree It creates a pointer that is allocated on the device. The pointer cannot be used by the caller and should only be passed to a CUDA kernel. The copy uses cudaMemcpy to transfer data between 2 device arrays. More...

#include <allocators.hpp>

Detailed Description

template<class T>
struct DeviceAllocator< T >

CUDA device memory allocator that uses cudaMalloc,cudaMemcpy,cudaFree It creates a pointer that is allocated on the device. The pointer cannot be used by the caller and should only be passed to a CUDA kernel. The copy uses cudaMemcpy to transfer data between 2 device arrays.

Definition at line 75 of file allocators.hpp.


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