measure CPU-GPU communication