CUDA cffi bindings and helper classes