Wrapper for CUDA written in C++