code for gpu program