moved gpu code [ci skip]