Work-flow in program that uses GPU programming