measure cpu-gpu communication when reusing the input buffer