modify to make gpu codes enabled