swap gpu and cpu