simple c++ gpu interface