speed and bandwidth code done for GPU