Full gmres implemetation for cuda backend
Allow cuda example to build in debug mode