code gen method for gpu types