Wrapped CUDA code