got input reading done. loosely set up cuda stuff