CudaLight

C++ CUDA memory manager to use in conjunction with CudaLightKernels


Project maintained by pmontalb Hosted on GitHub Pages — Theme by mattgraham

CudaLight

C++ manager class for CudaLightKernel API. The low level calls are managed by the static class DeviceManager, whereas the high level infrastructure is delegated to the particular buffer type. Only contiguous memory data structures have been implemented, as this project aims to give a simplified version to the CUDA standard library. The implemented structures are:

Types

All data structures are templated where the arguments are the memory space and the math domain. The memory space indicates where the memory has to be allocated, i.e. host side (CPU) or device side (GPU). The math domain defines the type of the vector: integer, float or double.

Restrictions

Dynamic buffers are not allowed. Size is needed in every constructor, and it’s not possible to resize the given buffer

For convenience’s sake the following typedefs have been defined:

Sample usage